rfc3339

How do I parse and convert DateTime's to the RFC 3339 date-time format?

How do I convert a DateTime structure to its equivalent RFC 3339 formatted string representation and/or parse this string representation back to a DateTime structure? The RFC-3339 date-time format is used in a number of specifications such as the Atom Syndication Format. ...

Output RFC 3339 Timestamp in Java

I want to output a timestamp with a PST offset (e.g., 2008-11-13T13:23:30-08:00). java.util.SimpleDateFormat does not seem to output timezone offsets in the hour:minute format, it excludes the colon. Is there a simple way to get that timestamp in Java? // I want 2008-11-13T12:23:30-08:00 String timestamp = new SimpleDateFormat("yyyy-MM-...

Howto format a boost::date_time-object as per RFC 3339

I want to use the date_time library in boost to represent time in my application. This application will generate Atom feeds, which in turn mandates time-stamps in the format specified in RFC 3339, for example "1990-12-31T23:59:60Z" or "1990-12-31T15:59:60-08:00". So, how do I format time according to this RFC? I have been reading the D...

Convert an RFC 3339 time to a standard Python timestamp

Is there an easy way to convert an RFC 3339 time into a regular Python timestamp? I've got a script which is reading an ATOM feed and I'd like to be able to compare the timestamp of an item in the ATOM feed to the modification time of a file. I notice from the ATOM spec, that ATOM dates include a time zone offset (Z<a number>) but, in ...

RFC822 Timezone Parsing in Java

Hi, I have a JS date that is being converted by Dojo into RFC822 format. The function call - dojo.date.toRfc3339(jsDate), generates the following date - 2007-02-26T20:15:00+02:00. I have an application that uses a Java date SimpleDateFormat to parse in the dates generated above. I am having problems parsing this date format due to th...

invalid rfc 3339 timestamp format?

Hi, I inserted this timestamp as part of the blogger query: http://www.blogger.com/feeds/26861498/posts/default?published-min=1937-01-01T12:00:27.87+08:00 It returned me an invalid pub-min format error. But as far as I know, this time format looks alright! can anyone help? ...

Python `YYYY-MM-DD`

In Python, what is the best way to get the RFC 3339 YYYY-MM-DD text from the output of gtk.Calendar::get_date()? ...

Make a video using Python+GST from a set of `YYYY-MM-DD`-dated pictures

I have a directory with a set of YYYY-MM-DD-dated files in as so: pictures/ 2010-08-14.png 2010-08-17.png 2010-08-18.png How can I use Python GStreamer to turn these files into a video? The filenames must remain the same. I have a program that can turn incrementally numbered PNGs into a video, I just need to adapt it to u...

Date format for 2008-02-01T10:03:23.793-06:00

Hi All, In my project i am getting "2008-02-01T10:03:23.793-06:00" this date format in string i have to convert into NSDate i am using NSDateFormatter* dateFormatter = [[NSDateFormatter alloc] init]; [dateFormatter setDateFormat:@"yyyy-MM-dd'T'HH:mm:ss.SSSZ"]; NSDate* dateFromString = [dateFormatter dateFromString:@"2008-02-01T10:03...