colinta / StrangeCase

It's yet another static site generator. Have you seen jekyll? hyde? Yup. Like those.
http://colinta.com/projects/StrangeCase.html
Other
49 stars 7 forks source link

Add timestamp filter. #19

Closed wichert closed 12 years ago

wichert commented 12 years ago

This adds a simple timestamp filter for places where you need a full timestamp instead of just a date.

colinta commented 12 years ago

what think you: https://gist.github.com/a83d6d39a3b981a487ad

I've brought in dateutil.parser.parse, moved string/int/float => datetime conversion into to_datetime()

see dc1650a for the entire commit

wichert commented 12 years ago

Looks good, although I'm wondering if you should use utcfromtimestamp instead.

colinta commented 12 years ago

i like it - also, i forgot to use to_datetime in timestamp(), that's been changed, too.