gregor icon indicating copy to clipboard operation
gregor copied to clipboard

Date and time library for Racket

Results 19 gregor issues
Sort by recently updated
recently updated
newest added

The example expression `(time-period-between (time 10 30) (time 11 00) '(seconds))` fails because `seconds-between` (and any other *-between functions) require `datetime-provider?`, as per their contracts. Thus `time-period-between` fails for all...

I didn't notice a function to normalize time periods, so given 61 minutes, you'd get 1 hour, 1 minute, but given 48 hours, you'd still get back 48 hours. Is...

enhancement
good first issue

Frequently I wish to pass a time period as an argument to programs, either through command line flags or environment variables. While gregor has facilities for parsing times and dates,...

enhancement
good first issue

I'm writing a `*period` function to let me scale periods, for example doubling `(period [months 1] [hours 3])`to `(period [months 2] [hours 6])`. I was hoping to do this by...

enhancement
good first issue

See #12 for one reason why this would be useful. It would be a good idea to mention specifics about formatting vs. parsing support.

doc
good first issue

For example, is there some way I could do something analogous to the following? (define thanksgiving (fourth (thursdays november)))

enhancement
maybe for successor

Offset/gap/overlay resolvers are functions with a particular kind of signature. If the API changes in a way that new parameters need to be added, removed, or moved around, all client...

maybe for successor

When I pass in a string that uses `b`, I get an error saying that `b` is a special character, and to use the string b instead. I however am...

enhancement

See #14 for an example. This probably has to do with the `object-name` of the procedures in question. Maybe I just shouldn't impose contracts except at the very public-private boundary....