#!/usr/bin/env python # encoding: utf-8 # # Copyright (c) 2008 Doug Hellmann All rights reserved. # """ """ #end_pymotw_header import time now = time.ctime() print now parsed = time.strptime(now) print parsed print time.strftime("%a %b %d %H:%M:%S %Y", parsed)