[Plugin] System date and time

Post your completed addons to share with the community

Post » Wed Apr 16, 2014 5:36 pm

Hi. I tried to create a countdown which shows remaining hours:minutes:seconds but have some issues with times longer than 24 hours (and if I add minutes a hour is added). You can find it here: how-do-i-make-a-countdown-timer_t101734

/Update: Fixed. :)
B
47
S
14
G
5
Posts: 635
Reputation: 8,017

Post » Sat Jul 19, 2014 6:27 pm

Hey, I like your avatar, do you use Python a lot?
Sorry about the username, old account XD
B
14
S
4
Posts: 69
Reputation: 1,404

Post » Sat Jul 19, 2014 11:53 pm

Digilogue Games wrote:Hey, I like your avatar, do you use Python a lot?

Python is my favor language.
B
97
S
22
G
176
Posts: 4,108
Reputation: 103,019

Post » Wed Aug 06, 2014 2:44 pm

this plugin is awasome it make it so much easier what i wanted, thanks.
B
5
Posts: 23
Reputation: 271

Post » Mon Aug 25, 2014 3:02 am

Update:

- Rewrite document
- Change the return value of "Expression:Timer" from millisecond to second.
B
97
S
22
G
176
Posts: 4,108
Reputation: 103,019

Post » Tue Aug 26, 2014 9:03 am

UnixTimeStamp - that will be handy. Now it will be easy to make all types of waiting mechanics even if the game is not running.
B
42
S
11
G
4
Posts: 505
Reputation: 7,267

Post » Tue Aug 26, 2014 9:06 am

@xoros

Uh, I had made another plugin named time away, which could get the elapsed interval of turned off game (not running) from webstorage.
B
97
S
22
G
176
Posts: 4,108
Reputation: 103,019

Post » Tue Aug 26, 2014 9:14 am

:) even better!
B
42
S
11
G
4
Posts: 505
Reputation: 7,267

Post » Tue Aug 26, 2014 1:43 pm

Hi Rexrainbow

I'm trying to use your plugin to determine if a current day is on a weekend or a weekday. I came across this example that's done in php talking about unixTimestamps etc like your plugin supports, but im not sure how to translate it into construct 2

http://stackoverflow.com/questions/9553 ... or-weekend

Is there a simple way to determine if its a weekend or weekday with your plugin?

thanks!
B
50
S
21
G
8
Posts: 844
Reputation: 10,299

Post » Thu Aug 28, 2014 3:18 pm

Does your Date plugin always grab the Date() from the System clock? I have been trying to get server time (in a UNIX timestamp format) via an AJAX call, but the clock seems to be displaying my local system time, not the server time that I gave the timestamp in your example.
https://www.ravenheart.ca/home
Company name changed to avoid Facebook-type shenanigans

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
17
S
5
G
1
Posts: 1,119
Reputation: 3,991

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 7 guests