Skip to content

Commit b4e10b6

Browse files
authored
Document Instant.DateTime; curt_++
coverage report shows it as covered; so it's likely in roast
1 parent 164d553 commit b4e10b6

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

doc/Type/Instant.pod6

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,4 +89,14 @@ Returns a L<Date|/type/Date> object set to the date of the invocant.
8989
say $i; # OUTPUT: «Instant:1451489025.878018␤»
9090
say $i.Date; # OUTPUT: «2015-12-30␤»
9191
92+
=head2 method DateTime
93+
94+
Defined as:
95+
96+
method DateTime(Instant:D: --> DateTime:D)
97+
98+
Coerces the invocant to L<DateTime>.
99+
100+
say now.DateTime; # OUTPUT: «2017-05-09T14:02:58.147165Z␤»
101+
92102
=end pod

0 commit comments

Comments
 (0)