get system time in pascal

hello,

how can i get the system time in pascal?

and if there is any PHP guru out there, is there a pascal-equivalent of the " time() " function in PHP?

thanx!

Comments

  • : hello,
    :
    : how can i get the system time in pascal?
    :
    : and if there is any PHP guru out there, is there a pascal-equivalent of the " time() " function in PHP?
    :
    : thanx!
    :
    Time() gives you the system time already. Or do you mean the uptime or tickcount?
  • i mean getting the system time in _pascal_ , NOT in PHP ...
  • : i mean getting the system time in _pascal_ , NOT in PHP ...
    :
    The Time() function is a Pascal function, which returns the DOS system time.
  • i used the quick pascal compiler released by Microsoft in 1989 to compile this -

    ******************
    uses crt;
    begin
    writeln(Time());
    end.
    ******************

    and the compiler returned an error messaging saying that TIME is an unknow identifier.

    is there anything special to use this function? thanx again.
  • [b][red]This message was edited by zibadian at 2006-10-24 6:59:21[/red][/b][hr]
    : i used the quick pascal compiler released by Microsoft in 1989 to compile this -
    :
    : ******************
    : uses crt;
    : begin
    : writeln(Time());
    : end.
    : ******************
    :
    : and the compiler returned an error messaging saying that TIME is an unknow identifier.
    :
    : is there anything special to use this function? thanx again.
    :
    In TP it is located in the Dos unit. Otherwise consult the help files for the unit which declares the Time() function.


  • : [b][red]This message was edited by zibadian at 2006-10-24 6:59:21[/red][/b][hr]
    : : i used the quick pascal compiler released by Microsoft in 1989 to compile this -
    : :
    : : ******************
    : : uses crt;
    : : begin
    : : writeln(Time());
    : : end.
    : : ******************
    : :
    : : and the compiler returned an error messaging saying that TIME is an unknow identifier.
    : :
    : : is there anything special to use this function? thanx again.
    : :
    : In TP it is located in the Dos unit. Otherwise consult the help files for the unit which declares the Time() function.
    :
    :
    :

    It's actually GetTime(), not Time() and it's located in the DOS unit.
    Hope this helps.

    Phat Nat
Sign In or Register to comment.

Howdy, Stranger!

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

Categories