Jump to content

Time ~ Time Passed ~ Time update


portkeywizzard
 Share

You are about to reply to a thread that has been inactive for 1253 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

I have an idea on something I want to code, but I'm having some trouble on one part of it. Before I waste hours on a code I first need to get over a road hump.Pretty much I have looked at all open source scripts, wikis, and web sites I can on this matter.  Not looking for a hand out on it or someone to do my work for me by no means. What I need help on, you would think it pretty easy to do.

I need a way to check time and date differences. Last time object was fired off (12/15/2019 @ 2:30 pm - 12/22/19 @ 3:30 am) hours mins and days time passes into that time frame.

basically a way to check for

  • Days passed
  • Hours passed
  • Mins passed

Thinking in a scope manner so I can check to see if trigger event is meet for the said time frame.

Idea is to check when said object is rezzed and or attach said object it would check the time and date for idea above. 

All ready have the timer pretty much formatted out for when said object is rezzed/attached.

Link to comment
Share on other sites

Except for the purposes of formatting a friendly readout, the easiest way to handle lapsed time is to simply count seconds.  Use llGetUnixTime to store the time when you start your process and then compare the Unix time at convenient intervals after that.  If you really need to convert your results into (or from) days/hours/minutes, use the handy helper functions at http://wiki.secondlife.com/wiki/LlGetUnixTime#Useful_Snippets

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 1253 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...