We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d81e22b commit c59ffcfCopy full SHA for c59ffcf
lib/Type/DateTime.pod
@@ -18,6 +18,22 @@ modified copy instead.
18
Time zones are handled as L<Integers|/type/Int> in B<seconds> offset from UTC,
19
not by time zone name.
20
21
+=begin code
22
+use v6;
23
+my $dt = DateTime.new(
24
+ year => 2015,
25
+ month => 11,
26
+ day => 21,
27
+ hour => 16,
28
+ minute => 1,
29
+);
30
+
31
+say $dt; # 2015-11-21T16:01:00Z
32
+say $dt.later(days => 20); # 2015-12-11T16:01:00Z
33
+say $dt.truncated-to('hour'); # 2015-11-21T16:00:00Z
34
+say $dt.in-timezone(-8 * 3600); # 2015-11-21T08:01:00-0800
35
+=end code
36
37
=head1 Methods
38
39
=head2 method new
0 commit comments