~miikka/clj-branca#2: 
Allow Inst values as :now

encode and decode optionally take the current time as an option :now. At the moment, the value has to be an integer that represents seconds since the Unix epoch.

It should be extended to allow values that satisfy the Inst protocol. We can then call inst-ms on the value to convert it into seconds.

The change involves

  • Adding Inst handling to get-now
  • Updating the docstrings for encode and decode
  • Adding unit tests with Inst now
Status
RESOLVED FIXED
Submitter
~miikka
Assigned to
No-one
Submitted
1 year, 11 months ago
Updated
11 months ago
Labels
No labels applied.

~miikka REPORTED FIXED 11 months ago

Fixed in version 0.1.2.

Register here or Log in to comment, or comment via email.