Pascal

Moderators: None (Apply to moderate this forum)
Number of threads: 4095
Number of posts: 14004

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
get system time in pascal Posted by lih0nman on 23 Oct 2006 at 10:56 PM
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!
Report
Re: get system time in pascal Posted by zibadian on 24 Oct 2006 at 12:34 AM
: 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?
Report
Re: get system time in pascal Posted by lih0nman on 24 Oct 2006 at 3:35 AM
i mean getting the system time in _pascal_ , NOT in PHP ...
Report
Re: get system time in pascal Posted by zibadian on 24 Oct 2006 at 4:36 AM
: i mean getting the system time in _pascal_ , NOT in PHP ...
:
The Time() function is a Pascal function, which returns the DOS system time.
Report
Re: get system time in pascal Posted by lih0nman on 24 Oct 2006 at 6:26 AM
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.
Report
Re: get system time in pascal Posted by zibadian on 24 Oct 2006 at 6:58 AM
This message was edited by zibadian at 2006-10-24 6:59:21

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


Report
Re: get system time in pascal Posted by Phat Nat on 3 Nov 2006 at 4:04 PM
: This message was edited by zibadian at 2006-10-24 6:59:21

: : 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



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.