Automatically getting date and time - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Automatically getting date and time

odan16odan16 Posts: 40Member
Does anyone know a piece of code that will automatically get the date or time from the computer's clock?

Comments

  • bpajkbpajk Posts: 156Member
    [b][red]This message was edited by bpajk at 2003-8-21 15:49:51[/red][/b][hr]
    Check the documentation of the dos unit.

    Unit: DOS
    Procedure GetTime (var hour, minute, second, sec100: word);

    [CODE]
    ...
    uses dos;
    ...
    begin
    ...
    getTime();
    ...
    end.
    [/CODE]




  • hannodevhannodev Posts: 1Member
    : Does anyone know a piece of code that will automatically get the date or time from the computer's clock?
    :

    -gettime and getdate
    -
    -simple hey?

    HDV
Sign In or Register to comment.