[Plugin] System date and time

Post your completed addons to share with the community

Post » Fri May 26, 2017 1:50 am

@ErudioLtd

1. Use "Expression:UnixTimestamp" (T0) when start app first time and save it.
- you might save a variable to know "start app first time" or not.
2. Others, get current timestamp by "Expression:UnixTimestamp" (T1)
3. subtract T1 to T0 -> delta time = T1 - T0, in ms.
B
110
S
28
G
280
Posts: 4,488
Reputation: 156,568

Post » Fri May 26, 2017 10:07 am

@rexrainbow

Thanks, ended up doing it saying - if first timestamp plus 30 days is greater than second (current) timestamp than perform the action. Thanks for the help and the good plug in as usual.
B
5
S
1
Posts: 65
Reputation: 507

Post » Mon May 29, 2017 9:54 am

@@rexrainbow , hi and thank you for this plugin,
a qustion !

can i use this for time tracking for game like farming simulator ? can user hack it?

thank you
B
10
S
3
Posts: 180
Reputation: 1,212

Post » Mon May 29, 2017 10:06 am

mostafanastary wrote:@@rexrainbow , hi and thank you for this plugin,
a qustion !

can i use this for time tracking for game like farming simulator ? can user hack it?

thank you


This data plugin uses system time, so, yes, user could change the system time to hack it.
B
110
S
28
G
280
Posts: 4,488
Reputation: 156,568

Post » Sun Jul 02, 2017 9:44 am

@rexrainbow - thanks for this awesome plug.

I was wanting to make a calendar type app, and was wondering if it is possible to use this plugin to find out what the first day of any given month is (Sunday, monody, Tuesday etc.....).

My thinking is that I could then use this as the starting point to make the Calendar grid.

Thanks for any input....
If it can be done, someone on the web will show you how to do it!

CDASI Games Mentality Break Splat-a-bug FlapFleet Challenge
B
35
S
13
G
7
Posts: 363
Reputation: 7,283

Post » Wed Nov 01, 2017 8:54 pm

@rexrainbow do I understand correctly that I can a set timestamp say ahead 2 weeks and then compare it to the current timestamp and if it is equal or greater then a specified event would happen. (ie: if today is thanksgiving and the background for a game is a turkey but on xmas day I want to change the background to a Hanukkah Moose). or is it better to set a timestamp and if timestamp is different by say 24 days it would then trigger the event? I just grabbed the plugin so I'm a newbie at this. Thanks in advance.
B
30
S
10
G
3
Posts: 75
Reputation: 3,558

Previous

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 2 guests