Created
November 29, 2012 20:32
-
-
Save earthmeLon/4171713 to your computer and use it in GitHub Desktop.
Convert time to C#
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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