-/CV_DATIL - Vector $D6
This vector converts date and time into a long integer.
Call Parameters | Return Parameters | ||
---|---|---|---|
D1.L | Unused | D1.L | Date. |
A1.L | Pointer to buffer. | A1.L | Corrupted. |
Errors
No errors are returned by this vector call.
Notes
- All registers not shown above are not used on entry and are preserved on exit.
- This routine works on SMSQ but not on a standard QL.
- A1 points to a buffer six words long containing year, month, day, hour, minute and second.
- D1.L contains the date in the usual long word format.
Example
The example below shows the use of this vector.
dte dc.w 2009 ; Year dc.w 2 ; Month dc.w 24 ; Day dc.w 10 ; Hour dc.w 57 ; Minute dc.w 0 ; Second Get_dt lea dte,a1 ; Date in year, month etc form. move.w CV_DATIL,a2 ; CV_DATIL vector address. jsr (a2) ; Set date in D1.L.