Getting clock data with AmigaOS functions?

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Felix.

I know using windows i can get the realtime actual clock data
fairly simple with OS commands like: GetLocalTime_() or GetSystemTime_(),
i would use it like this:

GetLocalTime_(time.SYSTEMTIME)
sec = time\wSecond
min = time\wMinute
hr = time\wHour

thats simple, but how do i get the same result in AmigaOS
with OS function calls ?

I think a global TIME and DATE function should be standart
accesable with PureBasic basic commands on any OS, but ok...

I don't have a qlue how to use the timer library/function
from amiga OS, i know it involves using messages to internal
parts of the system, and also stuff like calculating everything
from seconds or miliseconds or such, or from the date the computer
was made, its all complex to me.

Help me.
Felix.


P.V.C.