On 14/06/2014 16:12, Stephen Gilardi wrote:
This is not quite to your exact specification, but should help you to
write what you want:

user> (defn to-utc [dt]
(t/to-time-zone dt (t/time-zone-for-offset 0)))
#'user/to-utc
user> (to-utc (t/from-time-zone (t/date-time 1967 7 31 6 30)
(t/time-zone-for-id "America/Caracas")))
#<DateTime 1967-07-31T10:30:00.000Z>


Thanks. Can't think why it's not baked into the library, though, as it must be a common requirement.

gvim

--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- You received this message because you are subscribed to the Google Groups "Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to