G
gabriele renzi
Hi gurus and nubys,
I was wondering how to parse a line like this:
01/Oct/1980:01:56:57
I know I can use strftime() to write it:=> "10/Oct/2003:10:16:29"
And I supposed I could use DateTime.strptime() to parse it
(strptime() seem to get a format argument).
But if I try:ArgumentError: invalid date
How should I parse a line using a self-defined format?
I was wondering how to parse a line like this:
01/Oct/1980:01:56:57
I know I can use strftime() to write it:=> "10/Oct/2003:10:16:29"
And I supposed I could use DateTime.strptime() to parse it
(strptime() seem to get a format argument).
But if I try:ArgumentError: invalid date
How should I parse a line using a self-defined format?