alecthomas / devtodo2

DevTodo the Second
100 stars 18 forks source link

weekly.2011-12-01 update #2

Closed kortschak closed 12 years ago

kortschak commented 12 years ago

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.