Jump to content
UBot Underground

Search the Community

Showing results for tags 'date add'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Announcements and News
    • Join the UBot Community
  • General
    • General Discussion
    • Mac and UBot Studio
    • Journeys
    • Buy, Sell, Free
    • Scripting

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

Found 1 result

  1. I just wanted to share function that I wrote for adding time interval to specific date. It seems that UBOT missing basic date manipulation functions, so I decided to write my own. I hope it will be useful to someone define $date_add(#d, #interval, #ivalue) { if($comparison(#interval,"=","SECONDS")) { then { set(#st,$eval("var d=new Date('{#d}');d.setSeconds(d.getSeconds()+{#ivalue});d;"),"Local") } } if($comparison(#interval,"=","MINUTES")) { then { set(#st,$eval("var d=new Date('{#d}');d.setMinutes(d.getMinutes()+{#ivalue});d;"),
×
×
  • Create New...