Getting time (milliseconds) in LCB

LiveCode Builder is a language for extending LiveCode's capabilities, creating new object types as Widgets, and libraries that access lower-level APIs in OSes, applications, and DLLs.

Moderators: LCMark, LCfraser

Post Reply
pklum
Posts: 25
Joined: Fri Jan 17, 2025 6:47 pm
Contact:

Getting time (milliseconds) in LCB

Post by pklum »

Hi,
I have tried to get the milliseconds in LCB, but failed every atempt.
How do I get milliseconds or seconds in the best way?

Best Regards
Peter
Emily-Elizabeth
Posts: 239
Joined: Mon Jan 03, 2022 7:10 pm
Contact:

Re: Getting time (milliseconds) in LCB

Post by Emily-Elizabeth »

You'd have to do some math, but looks like there is a function to get the seconds from the epoch

https://docs.livecode.com/docs/LiveCode ... versalTime
Post Reply