1. Help for the Date() format - Reply

Matt wrote:

> I have the need the read the system's date in  a 4-digit format.
> Euphoria's Date() returns only the last two digit of the year...

include machine.e
function get_date()
-- return {year,month,day}
   sequence rl
   rl=repeat(0,10)
   rl[REG_AX]=#2A00
   rl=dos_interrupt(#21,rl)
   return {rl[REG_CX], floor(rl[REG_DX]/256),remainder(rl[REG_DX],256)}
end function

To set date, see Jacques' doswrap.e. Jiri

new topic     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu