Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added use case to README

  • Loading branch information...
commit c4f3931da3a44b0e7f51143034601a38234294fa 1 parent bc94966
@supernovus authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 README
View
7 README
@@ -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.";
+
Please sign in to comment.
Something went wrong with that request. Please try again.