Jump to content

More time script functions


Moriarty

Recommended Posts


  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  135
  • Reputation:   13
  • Joined:  06/20/12
  • Last Seen:  

We lack functions like UNIX to Date conversion and vice versa.
I know these are available thru SQL, but we're not always working with database.

Link to comment
Share on other sites

  • 4 weeks later...

  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

something like the SQL FROM_UNIXTIME?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  53
  • Topics Per Day:  0.01
  • Content Count:  411
  • Reputation:   261
  • Joined:  04/25/12
  • Last Seen:  

+1 for this

And it will be a nice a extra statement to "set" command

set <varname>,<value>,{<time>}

Sample:

if(time==1){
mes "Your 10 seconds are UP!";
close;
}
mes "I will give you 10 seconds.";
close2;
set time,1,10;
end;

This is more fast and easy than addtimer or sleeps, dont?

Edited by Zell
Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2346
  • Joined:  10/28/11
  • Last Seen:  

I believe he want a script command like this. Work exactly like the FROM_UNIXTIME

mysql-from_unixtime-function.png

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

Then I was thinking. Just make global function for MySQl time functions.

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