: 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?
[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.
Comments
:
: 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?
:
The Time() function is a Pascal function, which returns the DOS system time.
******************
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.
: 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.
: : 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