Skip to content

Commit b4efa2c

Browse files
committed
Make :timezone always be a named (optional) param
1 parent fc3c0d2 commit b4efa2c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/Type/DateTime.pod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Defined as:
5151
Int :$timezone = 0, :&formatter)
5252
multi method new(Int() $year, Int() $month, Int() $day,
5353
Int() $hour, Int $minute, $second,
54-
Int() $timezone, :&formatter)
54+
Int() :$timezone = 0, :&formatter)
5555
multi method new(Instant:D $i, :$timezone=0, :&formatter)
5656
multi method new(Int:D $posix, :$timezone=0, :&formatter)
5757
multi method new(Str:D $format, :$timezone=0, :&formatter)
@@ -63,7 +63,7 @@ Usage:
6363
$datetime = DateTime.new(DATE, HOUR?, MINUTE?, SECOND?, TIMEZONE?,
6464
FORMATTER?)
6565
$datetime = DateTime.new(YEAR, MONTH, DAY, HOUR, MINUTE, SECOND,
66-
TIMEZONE, FORMATTER?)
66+
TIMEZONE?, FORMATTER?)
6767
$datetime = DateTime.new(INSTANT, TIMEZONE?, FORMATTER?)
6868
$datetime = DateTime.new(TIMESTAMP, TIMEZONE?, FORMATTER?)
6969
$datetime = DateTime.new(FORMAT, TIMEZONE?, FORMATTER?)

0 commit comments

Comments
 (0)