vendredi 8 mai 2015

using cython to generate a unix timestamp

If you have every integer in memory to construct a datetime object, is there a better way than the following.

atoi(datetime(year,month,day,hour,minute,second).stftime("%s"))

Aucun commentaire:

Enregistrer un commentaire