Re: [R] Strange result for strptime with %p

2018-10-02 Thread David Winsemius
> On Oct 2, 2018, at 10:11 AM, David Winsemius wrote: > > >> On Oct 2, 2018, at 6:30 AM, Marc Girondot via R-help >> wrote: >> >> Dear members... are these results normal ? >> >> For the first one, no problem. I expected this: >> >>> strptime("05/01/18 01:00:00 AM", format = ("%m/%d/%y

Re: [R] Strange result for strptime with %p

2018-10-02 Thread David Winsemius
> On Oct 2, 2018, at 6:30 AM, Marc Girondot via R-help > wrote: > > Dear members... are these results normal ? > > For the first one, no problem. I expected this: > > > strptime("05/01/18 01:00:00 AM", format = ("%m/%d/%y %I:%M:%S %p"), > > tz="Asia/Jayapura") > [1] "2018-05-01 01:00:00

Re: [R] Strange result for strptime with %p

2018-10-02 Thread Jeff Newmiller
t; Hi >> >> Credit belongs to documentation. I picked it from it. >> >> Cheers >> Petr >> >>> -Original Message- >>> From: peter dalgaard >>> Sent: Tuesday, October 2, 2018 4:15 PM >>> To: PIKAL Petr >>> Cc: Marc G

Re: [R] Strange result for strptime with %p

2018-10-02 Thread Rui Barradas
umentation. I picked it from it. Cheers Petr -Original Message- From: peter dalgaard Sent: Tuesday, October 2, 2018 4:15 PM To: PIKAL Petr Cc: Marc Girondot ; r-help mailing list Subject: Re: [R] Strange result for strptime with %p Nice catch, Petr: strptime("05/01/18 00:59:

Re: [R] Strange result for strptime with %p

2018-10-02 Thread PIKAL Petr
Hi Credit belongs to documentation. I picked it from it. Cheers Petr > -Original Message- > From: peter dalgaard > Sent: Tuesday, October 2, 2018 4:15 PM > To: PIKAL Petr > Cc: Marc Girondot ; r-help mailing list project.org> > Subject: Re: [R] Strange result

Re: [R] Strange result for strptime with %p

2018-10-02 Thread peter dalgaard
R-help On Behalf Of Marc Girondot via >> R-help >> Sent: Tuesday, October 2, 2018 3:30 PM >> To: R-help Mailing List >> Subject: [R] Strange result for strptime with %p >> >> Dear members... are these results normal ? >> >> For the first one,

Re: [R] Strange result for strptime with %p

2018-10-02 Thread PIKAL Petr
Hi Maybe it is connected to %I Hours as decimal number (01–12). Your input has hour as 00 Cheers Petr > -Original Message- > From: R-help On Behalf Of Marc Girondot via > R-help > Sent: Tuesday, October 2, 2018 3:30 PM > To: R-help Mailing List > Subject:

[R] Strange result for strptime with %p

2018-10-02 Thread Marc Girondot via R-help
Dear members... are these results normal ? For the first one, no problem. I expected this: > strptime("05/01/18 01:00:00 AM", format = ("%m/%d/%y %I:%M:%S %p"), tz="Asia/Jayapura") [1] "2018-05-01 01:00:00 WIT" For this one, it is ok also: > strptime("05/01/18 01:00:00 AM", format =