I would suggest to look at ZTimestamp
https://github.com/svenvc/docs/blob/master/neo/ztimestamp.md.
Maybe it is not exactly what you want. But example based date/time
formatting and parsing are really nice

2016-10-27 13:20 GMT+02:00 stepharo <steph...@free.fr>:

> Hi
>
> for a little project I need to print date in a nice way (for example
> french) and I wonder if someone already did that.
>
> Right now I'm extracting behavior from Date and putting it in its own
> class so that I can write
>
>
> testAPI
>     | datePrinter |
>     datePrinter := DatePrinter new.
>     datePrinter
>         inFrench;
>         mmddyyyy.
>     datePrinter for: (Date year: 2016 month: 1 day: 3).
>     self assert: datePrinter print equals: '3 Janvier 2016'
>
> I will for fun see how I can add an english and spanish version.
>
>
> Stef
>
>
>

Reply via email to