Permalink
Browse files

Added use case to README

  • Loading branch information...
1 parent bc94966 commit c4f3931da3a44b0e7f51143034601a38234294fa @supernovus committed Jul 24, 2010
Showing with 7 additions and 0 deletions.
  1. +7 −0 README
View
@@ -13,3 +13,10 @@ objects much easier.
Use 'ufo' to generate the Makefile for this project.
See http://github.com/masak/ufo for more details.
+=== Example Use Case ===
+
+use DateTime::Utils;
+my $dt = DateTime.now(:timezone(iso-offset('-0800')));
+say "It's "~strftime('%T', $dt)~" at supernovus's place.";
+say "It's "~strftime('%T', $dt.in-timezone(iso-offset('+0200')))~" at masak's place.";
+

0 comments on commit c4f3931

Please sign in to comment.