Sign in to follow this  
Followers 0
Flash1212

Adding time to a time stamp

4 posts in this topic

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

Share this post


Link to post
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

Share this post


Link to post
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))

Share this post


Link to post
Share on other sites

Thanks, I will be sure to give both ideas try :) .


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

Share this post


Link to post
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
Sign in to follow this  
Followers 0