Skip to content

Instantly share code, notes, and snippets.

@earthmeLon
Created November 29, 2012 20:32
Show Gist options
  • Save earthmeLon/4171713 to your computer and use it in GitHub Desktop.
Save earthmeLon/4171713 to your computer and use it in GitHub Desktop.
Convert time to C#
def cs_time():
'''
Convert current time into .Net/C# equivalent
(and think to yourself why you're dealing with C# in the first place).
import datetime
'''
t = str(datetime.datetime.now())
return t.replace(" ", "T")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment