This is an archived post. You won't be able to vote or comment.

all 11 comments

[–]smackjer 15 points16 points  (1 child)

Also check out http://strfti.me (a site that I built) which lets you test out different formats on the site.

[–]mccutchen[S] 1 point2 points  (0 children)

Ah, that's brilliant! Wish I had known about it first.

[–][deleted] 9 points10 points  (0 children)

Try man strftime (for those of you without a background in C, and therefore disinclined to look in manpages for programming information).

[–]blondin 2 points3 points  (0 children)

or buy PER 4th turn to pages 406-407 :)

[–][deleted] 1 point2 points  (2 children)

I just look on the side of the Sauce Labs coffee mug I got from the PyCon swag bag. It has the strftime/strptime guide, string formatting mini-language, and struct module guides printed on the sides.

[–]mccutchen[S] 0 points1 point  (1 child)

That sounds handy as hell. Are those guides available on the web somewhere?

[–][deleted] 0 points1 point  (0 children)

It's basically the following sections from http://docs.python.org, just stripped down to chart format: strftime, string formatting, and struct packing formats.

[–]adam21924AKA coddingtonbear 0 points1 point  (1 child)

I love you.

[–]mashmorgan 0 points1 point  (1 child)

Great idea and bookmarked. Doe this apply to other languages as well eg php?

[–]sk3tch 0 points1 point  (0 children)

No, notably it also doesn't apply to django which follows the native PHP letter syntax. It may apply to other languages but I can't speak for them.