Thank you Georg!
It definitely resolves the problem!
Adding the correct time zone (tz='GMT') returns a valid number as my
data are in solar time.
rob
[[alternative HTML version deleted]]
__
R-devel@r-project.org mailing list
https://stat.ethz.c
bably happens at 2am.
Georgi Boshnakov
--
Message: 7
Date: Thu, 26 Jan 2017 11:02:06 +0100
From: rob vech
To: r-devel@r-project.org
Subject: [Rd] strptime bug
Message-ID: <70325e6b-6d54-8172-3915-bbfc8d5cd...@gmail.com>
Content-Type: text/plain; charset=&q
Dear developer list,
I want to submit the following problem that seems like a bug, as
confirmed by an other user [1], related to date-time parsing:
Here a simple script:
# that works:
as.numeric(as.POSIXlt(strptime('2016-03-27 01:05:50', format='%Y-%m-%d
%H:%M:%S')))
# that not (it returns NA):