Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.
Originally posted by: the1donI am trying to get the current date time in a specific millisecond format and having issues. I have tried following another post in here and it just isn't coming to me. It is putting the .123000 and not the millisecond time and can't get the PM/AM part. Any help is appreciated
This is output I would like for the current time it is being run:
12/24/2015 12:39:32.037626 PM
This is what I have
someDate = date()
someTime = time()
MS = 123
someDT = timestamp(someDate, someTime)
someDTMS = someDT.dateTimeAdjust(MS, "milliseconds")
emit someDate, someTime, someDT, someDTMS
someDate someTime someDT someDTMS
2015-12-24 13:33:37 2015-12-24 13:33:37 2015-12-24 13:33:37.123000