playMaker

Author Topic: How to amend strings of system time?  (Read 1376 times)

jess84

  • Hero Member
  • *****
  • Posts: 515
How to amend strings of system time?
« on: March 25, 2014, 08:02:18 PM »
Hi,

So I'm looking at time limited objects that expire in my game.

I'm storing the System Time and Date as a string. How do I modify a specific part of that to generate a new string - the expiry date time?

E.g. I want to add 10mins to the original string, which I then do a string compare to to check it's still valid.

Or is string compare expensive and I should do it completely differently?

Thanks in advance

jess84

  • Hero Member
  • *****
  • Posts: 515
Re: How to amend strings of system time?
« Reply #1 on: March 26, 2014, 03:43:35 PM »
I found this custom action:
http://hutonggames.com/playmakerforum/index.php?topic=1047.0

This seems to similar to what I need. Would anyone with the skills be able to amend it to output a new string based on the duration entered by a user?