Date manipulation: Difference between revisions
Content added Content deleted
m (diff timezone) |
(Add Crystal) |
||
Line 681: | Line 681: | ||
2009-03-08/07:30:00-05:00 |
2009-03-08/07:30:00-05:00 |
||
</pre> |
</pre> |
||
=={{header|Crystal}}== |
|||
<lang ruby>time = Time.parse("March 7 2009 7:30pm EST", "%B %-d %Y %l:%M%p", Time::Location.load("EST")) |
|||
time += 12.hours |
|||
puts time # 2009-03-08 07:30:00 -05:00 |
|||
puts time.in(Time::Location.load("Europe/Berlin")) # 2009-03-08 13:30:00 +01:00 |
|||
</lang> |
|||
=={{header|D}}== |
=={{header|D}}== |