Jump to content

Adding time to a time stamp


Flash1212
 Share

Recommended Posts

Hey I'm some what new to all of this and could really use some help. I'm trying to make a time stamp that will have a previous time with time added to it. For example in my script is displays a gui that has the time that the script began in it using the _nowtime(4) command but I would like to also display the time 30 minutes from then (start - 10:40 end - 11:10). Is there a way to do this where it will figure out that time for me? Thanks!

**The only limit is what you believe they tell you it is**

Link to comment
Share on other sites

Im not sure how a timestamp works off the top of my head but I believe its a string, so try parsing it and using the Number( ) func to do some math on it then convert it back. Use a message box with a timestamp to find out the format.

[center][/center]Working on the next big thing.Currently Playing: Halo 4, League of LegendsXBL GT: iRememberYhslaw

Link to comment
Share on other sites

You could always save the start time to a variable then call it for display later. Like

$start = _nowtime(4)

guictrlsetdata(whatever the name of the display is, $start & "end time" & _nowtime(4))

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...