Synchronize Time with your NADS: Difference between revisions

From Bitchin100 DocGarden
Jump to navigationJump to search
(New page: This program will synchronize your time and date with NADSBox. Note, you will have to date the DAY$ separately since this code doesn't do that calculation. <pre> 1 MAXFILES=2:DEFSTRA-F:F...)
 
No edit summary
Line 1: Line 1:
This program will synchronize your time and date with NADSBox.
This program will synchronize your time and date with NADSBox.


Note, you will have to date the DAY$ separately since this code doesn't do that calculation.
Note, you will have to set the DAY$ separately since this code doesn't do that calculation.


<pre>
<pre>

Revision as of 23:07, 11 January 2009

This program will synchronize your time and date with NADSBox.

Note, you will have to set the DAY$ separately since this code doesn't do that calculation.

1 MAXFILES=2:DEFSTRA-F:F="COM:98N1E":OPE
NFFOROUTPUTAS1:OPENFFORINPUTAS2:E=CHR$(5
):C=CHR$(13):?#1,E;"time";C;E;"date";C;:
INPUT#2,A:A=STR$(VAL(A)+(RIGHT$(A,1)="p"
AND12))+RIGHT$(A,7):MID$(A,1)="0":TIME$=
MID$(A,LEN(A)-8,8)
2 INPUT#2,A:MID$(A,1)="0":L=LEN(A)-9:DAT
E$=MID$(A,L,2)+"/"+MID$(A,3+L,2)+"/"_RIG
HT$(A,2)