I've used a library like this before
[https://github.com/jeremyw/stamp], and realized that there were two
things I didn't like about it: (1) potential ambiguity in the
(user-)chosen exemplar date/time and (2) my tendency to mistake the
exemplar date for an actual piece of data in the program. Go's
approach probably helps with both problems.


On Thu, Mar 26, 2015 at 6:43 PM, Sam Tobin-Hochstadt
<sa...@cs.indiana.edu> wrote:
>
>
> On Thu, Mar 26, 2015 at 4:26 PM Jon Zeppieri <zeppi...@gmail.com> wrote:
>>
>> On Thu, Mar 26, 2015 at 3:56 PM, John Clements
>> <cleme...@brinckerhoff.org> wrote:
>> >
>> > On Mar 25, 2015, at 6:55 PM, Jon Zeppieri <zeppi...@gmail.com> wrote:
>> >
>> >> I recently uploaded Gregor, a date and time library, to the package
>> >> server.
>> >
>> > Can I use this instead of SRFI 19? That would be wonderful.
>> >
>> > John Clements
>>
>> Please do, and let me know what additions or changes you'd like.
>
>
> One cool feature I've seen [1] is formatting dates based on existing
> formatted dates. IOW, something like this:
>
>> (~t (today) "1/1/2000")
>
> [1] Go does a variant of this but it looks like it has to be one specific
> date in 2006: http://golang.org/pkg/time/#pkg-constants

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to