From juan_sr at uol.com.br  Mon Nov 22 03:34:39 2004
From: juan_sr at uol.com.br (Juan Santiago Ramseyer)
Date: Mon Nov 22 04:36:32 2004
Subject: [Rd] strptime() bugs?
Message-ID: <1101090880.4260.12.camel@localhost.localdomain>

strptime return wrong data?, look the R session.


# datetxt: vector of date in text format
> datetxt <- c("1939-Oct-06 00:00:00", "1939-Oct-07 00:00:00", 
               "1939-Oct-08 00:00:00", "1939-Oct-09 00:00:00")

> datehour <- strptime(datetxt,format= "%Y-%b-%d %H:%M:%S")
> datehour
[1] "1939-10-06 00:00:00" "1939-10-07 00:00:00" "1939-10-08 01:00:00"
[4] "1939-10-09 00:00:00"

# look value of datehour[3] element, where hour output equal 01:00:00,
# but hour input equal 00:00:00.


Juan


[Rd] strptime() bugs?
Juan Santiago Ramseyer