qdosmsq:vectors:datil

-/CV_DATIL - Vector $D6

This vector converts date and time into a long integer.

Call ParametersReturn Parameters
D1.LUnused D1.LDate.
A1.LPointer to buffer. A1.LCorrupted.

No errors are returned by this vector call.

  • 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.

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.
	
  • qdosmsq/vectors/datil.txt
  • Last modified: 2009/02/25 11:02
  • by george.gwilt