I am getting an unanticipated result attempting to format a datetime
string
 
date1 <- strptime('2005 297 1030 35', '%Y %j %H%M %S')     # returns
"2005-10-24 10:12:35"
date2 <- strptime('2005 297 912 35', '%Y %j %H%M %S')      # returns NA
 
Are there any ways to adjust the format argument (e.g., '%H') to accept
one or two digit hours?
 
Thanks in advance,

Dave
 

	[[alternative HTML version deleted]]

