home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AMOS PD CD
/
amospdcd.iso
/
576-600
/
apd600
/
ldos_demo
/
examples
/
date-demo.amos
/
date-demo.amosSourceCode
Wrap
AMOS Source Code
|
1994-02-02
|
652b
|
20 lines
' This demo use Lsys Stamp to get the current datestamp (SYSTEM-time which
' is set by SetClock LOAD, or Date in your s/startup-sequence)
' It then converts this stamp using Ldate.
'
' Lsys Time simply returns a string with the current time.
Print Extension_10_02D4 ;" days have passed since 1 Jan 1978"
Every 50 Proc DAT
Curs Off
Do
Multi Wait
Exit If Inkey$<>""
Loop
Procedure DAT
A$= Extension_10_00DE( Extension_10_02D4 )
B$= Extension_10_02C4
Print "Current date : ";Mid$(A$,1,2);"-";Mid$(A$,3,2);"-";Mid$(A$,5,2)
Print "Current time : ";Mid$(B$,1,2);":";Mid$(B$,3,2);".";Mid$(B$,5,2)
Cup : Cup
Every On
End Proc