~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
REPORTED
Submitter
~miikka
Assigned to
No-one
Submitted
13 days ago
Updated
13 days ago
Labels
No labels applied.