Pascal

Moderators: None (Apply to moderate this forum)
Number of threads: 4106
Number of posts: 14016

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

Report
Automatically getting date and time Posted by odan16 on 21 Aug 2003 at 12:51 PM
Does anyone know a piece of code that will automatically get the date or time from the computer's clock?
Report
Re: Automatically getting date and time Posted by bpajk on 21 Aug 2003 at 3:36 PM
This message was edited by bpajk at 2003-8-21 15:49:51

Check the documentation of the dos unit.

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

...
uses dos;
...
begin
  ...
  getTime();
  ...
end.





Report
Re: Automatically getting date and time Posted by hannodev on 25 Oct 2003 at 1:14 AM
: 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



 

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.