json is handed int64 unix time via Time.Unix() rather than a time.Time to
maintain compatability with .todo2 format. All other time-like values are
either time.Duration or time.Time. At some stage you may want to move
to the Time.MarshalJSON() method which can be easily done by removing
.Unix() call.
json is handed int64 unix time via Time.Unix() rather than a time.Time to maintain compatability with .todo2 format. All other time-like values are either time.Duration or time.Time. At some stage you may want to move to the Time.MarshalJSON() method which can be easily done by removing .Unix() call.
Passes included tests, and seems to work.