Skip to content

Instantly share code, notes, and snippets.

@sbchisholm

sbchisholm/msnow.jl

Last active Jan 12, 2016
Embed
What would you like to do?
function msnow()
t = time()
tm = Libc.TmStruct(t)
DateTime(tm.year+1900,tm.month+1,tm.mday,tm.hour,tm.min,tm.sec,round(Int64,t*1000)%1000)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment