andrewmcveigh / cljs-time

A clj-time inspired date library for clojurescript.
342 stars 57 forks source link

handle nils same way as clj-time #49

Closed yogthos closed 9 years ago

yogthos commented 9 years ago

Some of the functions in cljs-time will NPE while the equivalent clj-time functions will handle nils intelligently. For example, from-date in clj-time does a when check on the date. I think this is very valuable as it allows you to safely chain the functions without having to pepper nil checks in-between.

andrewmcveigh commented 9 years ago

Thanks for the report, should be fixed in 0.3.14

yogthos commented 9 years ago

:+1: