04 March 2016, 06:51 | #1 |
Registered User
Join Date: Jun 2013
Location: Australia
Posts: 685
|
Set System Time
Hi Guys
Does anyone have a snippet to set system time that works? I’ve tried several examples that crash or freeze if they do compile. Also what’s the difference between Open_A_Device and just OpenDevice? The former complains about unprototyped call when I try to compile the example from Abucus - Advanced System Programmer’s Guide (I know there are mistakes in it). I already wrote working code to come up with seconds from 1st Jan 1978. |
04 March 2016, 07:30 | #2 |
Registered User
Join Date: Jan 2002
Location: Germany
Posts: 7,028
|
I never heard of Open_A_Device. OpenDevice needs some preparation, like creating a reply port and allocating an IORequest. I guess Open_A_Device is something like open_timer in my example.
Here is a complete example: |
04 March 2016, 10:24 | #3 |
Registered User
Join Date: Jun 2013
Location: Australia
Posts: 685
|
Thanks Thomas,
It looks like I wasted my time converting a time & date to epoch seconds! Can’t wait to try it |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Sync to system time? | JumpingJackson | support.FS-UAE | 1 | 04 August 2015 00:15 |
[Found: The Executioner] Looking for a thrust-type game set in medieval time | pickaweapon | Looking for a game name ? | 3 | 07 August 2011 20:52 |
App to update Amiga System time from web time?? | DDNI | request.Apps | 2 | 31 December 2007 07:21 |
Tool to set spindown time of 2 1/2 inch hds? | Jerry | request.Apps | 19 | 25 May 2006 00:21 |
Set time and date on A500 | jonmoore | support.Hardware | 4 | 09 July 2005 08:35 |
|
|