You need to sign in to do that
Don't have an account?
SpongeBob_2009
Apex: Current time, Milli Second Precision?
I want to get as much time precision from the system as possible...then covert to sting.
Any ideas?
function readOnly(count){ }
You need to sign in to do that
Don't have an account?
I want to get as much time precision from the system as possible...then covert to sting.
Any ideas?
Well, in Apex:
Datetime x = Datetime.now();
Integer m = x.milliseconds();
You can then convert it to a String in any number of formats, etc.
or Datetime.getTime returns the offset from 1/1/70 in milliseconds.
It's funny though, I've always thought of Sting as more of a musician than some sort of spy. I'm not sure why he'd need you to send himmillisecond values through some secret channel?
Best, Steve.
All Answers
Well, in Apex:
Datetime x = Datetime.now();
Integer m = x.milliseconds();
You can then convert it to a String in any number of formats, etc.
or Datetime.getTime returns the offset from 1/1/70 in milliseconds.
It's funny though, I've always thought of Sting as more of a musician than some sort of spy. I'm not sure why he'd need you to send himmillisecond values through some secret channel?
Best, Steve.
`Long start = Datetime.now().millisecond()`