Created
December 22, 2015 23:17
-
-
Save Jannis/07de0f4069ecf5f856d9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cljs.user=> (def dt (goog.date.DateTime.)) | |
#'cljs.user/dt | |
cljs.user=> (.parse (goog.i18n.DateTimeParse. "yyyy-MM-dd'T'HH:mm:ssZ") "2016-01-13T00:00:00-0800" dt) | |
24 | |
cljs.user=> dt | |
#object[Object 20160113T090000] | |
cljs.user=> (.getTimezoneOffsetString dt) | |
"+01:00" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment