Skip to content

Instantly share code, notes, and snippets.

@bussiere
Created August 13, 2010 13:20
Show Gist options
  • Save bussiere/522860 to your computer and use it in GitHub Desktop.
Save bussiere/522860 to your computer and use it in GitHub Desktop.
#return star trek date time Version for Python 2.x
from time import strftime
def startrek_time():
t = strftime("%Y%m.%d %H:%M:%S")[2:]
if t[0] == "0" :
t = strftime("%Y%m.%d %H:%M")[3:]
return t
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment