playMaker

Author Topic: Add new variable type to Playmaker  (Read 1046 times)

artistpm

  • Playmaker Newbie
  • *
  • Posts: 5
Add new variable type to Playmaker
« on: October 13, 2020, 11:29:28 PM »
Hi!

How is it possible to add c# provided, or custom DateTime type to Playmaker variables?
Unfortunately, I didn't find in the documentation this opportunity, neither this forum helped.

I know Playmaker has the Time Action category, but only 'Get System Date Time' Action occupies with date and time, however the 'Get System Date Time' returns a String.

Could you please, drop some line if it is possible to introduce a DateTime variable Type to be able select from the Variable Type list on the Variables tab (also as a global variable type)?

Thank you for your answer, in advance

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Add new variable type to Playmaker
« Reply #1 on: October 14, 2020, 05:25:17 AM »
Hi.
What exactly you need it for?

If you need to get a timespan between 2 dates, there is an action for it on the Ecosystem (search 'Date')

artistpm

  • Playmaker Newbie
  • *
  • Posts: 5
Re: Add new variable type to Playmaker
« Reply #2 on: October 15, 2020, 12:53:21 AM »
Oh... sorry I didn't realised it.

Anyway, thanks a lot!  :)


mech_alina

  • Playmaker Newbie
  • *
  • Posts: 8
Re: Add new variable type to Playmaker
« Reply #3 on: February 25, 2021, 09:48:43 PM »
Hello! I need help with this too. Using the "Get Time Span Between Dates" only works with the DateTime and not strings and I can only save the dates with the Get System Date Time which saves things as strings. Please help!

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Add new variable type to Playmaker
« Reply #4 on: February 26, 2021, 06:04:28 AM »
Hi.
As far as i know "Get Time Span Between Dates" works with strings.