@@ -41,6 +41,9 @@ as.POSIXxt(x, tz = "", ...)
4141# # S3 method for class 'POSIXt'
4242as.POSIXxt(x , tz = attr(x , " tzone" )[1L ], ... )
4343
44+ # # S3 method for class 'POSIXxt'
45+ as.POSIXlt(x , tz = attr(x , " tzone" )[1L ], ... , locale = NULL )
46+
4447# # Default S3 method:
4548as.POSIXxt(x , tz = " " , ... )
4649
@@ -132,26 +135,26 @@ Related function(s): [`sprintf`](sprintf.md), [`ISOdatetime`](ISOdatetime.md)
132135
133136``` r
134137strftime(Sys.time()) # default format - ISO 8601
135- # # [1] "2021-08-27T16:19:45 +1000"
138+ # # [1] "2021-08-27T17:31:57 +1000"
136139f <- c(" date_full" , " %Y-%m-%d" , " date_relative_short" , " datetime_full" )
137140strftime(Sys.time(), f ) # current default locale
138141# # [1] "Friday, 27 August 2021"
139142# # [2] "2021-08-27"
140143# # [3] "today"
141- # # [4] "Friday, 27 August 2021 at 4:19:45 pm Australian Eastern Standard Time"
144+ # # [4] "Friday, 27 August 2021 at 5:31:57 pm Australian Eastern Standard Time"
142145strftime(Sys.time(), f , locale = " de_DE" )
143146# # [1] "Freitag, 27. August 2021"
144147# # [2] "2021-08-27"
145148# # [3] "heute"
146- # # [4] "Freitag, 27. August 2021 um 16:19:45 Ostaustralische Normalzeit"
149+ # # [4] "Freitag, 27. August 2021 um 17:31:57 Ostaustralische Normalzeit"
147150strftime(Sys.time(), " date_short" , locale = " en_IL@calendar=hebrew" )
148151# # [1] "19 Elul 5781"
149152strptime(" 1970-01-01 00:00:00" , " %Y-%m-%d %H:%M:%S" , tz = " GMT" )
150153# # [1] "1970-01-01T00:00:00+0000"
151154strptime(" 1970-01-01" , " %Y-%m-%d" ) # missing time info replaced with current
152- # # [1] "1970-01-01T16:19:45 +1000"
155+ # # [1] "1970-01-01T17:31:57 +1000"
153156strptime(" 14 Nisan 5703" , " date_short" , locale = " en_IL@calendar=hebrew" )
154- # # [1] "1943-04-19T16:19:45 +1000"
157+ # # [1] "1943-04-19T17:31:57 +1000"
155158as.POSIXxt(" 1970-01-01" )
156159# # [1] "1970-01-01T00:00:00+1000"
157160as.POSIXxt(" 1970/01/01 12:00" )
0 commit comments