From f4311f381df761eefecf5ca037d74ba6556447bd Mon Sep 17 00:00:00 2001 From: Grinnz Date: Tue, 21 Oct 2025 23:58:34 -0400 Subject: [PATCH] Mention the version needed for strptime defaults --- Piece.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Piece.pm b/Piece.pm index 9c6839c..2896672 100644 --- a/Piece.pm +++ b/Piece.pm @@ -1266,6 +1266,9 @@ To get local time objects, you can: my $local = localtime(); Time::Piece->strptime($string, $format, { defaults => $local }) +The islocal and defaults options were added in version 1.37; the instance +method can be used for compatibility with previous versions. + =head3 Locale Considerations By default, C only parses English day and month names, while