Skip to navigation
How to have the comfortable php date function in python
02.04.14
def date(self,f='%m/%d/%Y %H:%M',unixtime=time.time()): d = datetime.datetime.fromtimestamp(unixtime) return d.strftime(f) than use it the same php: date("%Y",time.time())
http://www.php2python.com/wiki/function.date/
Reply
Anonymous
Information Epoch 1736564806
Development is an iterative process.
Home
Notebook
Contact us