Jump to content
lazarbeam

Forms and Time

Recommended Posts

Hey guys! A couple questions:

-Is there a tutorial on forms? I looked in the guides section with no luck. I want a script to get info from a form that is constantly present and does not need closed for the script to begin. Above all, I want to know how to do it properly.

ANSWERED (checked the Wiki) -How can I get the current PC time? (GetSystemTime returns only time PC has been running)

 

 

Thanks

Edited by lazarbeam
Link to comment
Share on other sites

I dont know what your tryin' to achive, and I can't see why you would want the "current PC-time" (whatever that means)... But if by PC-time you mean the current timestamp...?

[sCAR]

//function Time: Double;

//Convert it to "clock"-format..:

WriteLn(TimeToStr(Time));

[/sCAR]

There is also: function Now: Double;

Now; seems to return days since year 1900 (not unixtime which i'm used to) with a decimal-place that is the same as Time;.

Hope it helps.

Edited by slacky
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
  • Create New...