[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
53
S
16
G
6
Posts: 718
Reputation: 9,150

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
107
S
25
G
243
Posts: 4,387
Reputation: 137,466

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
107
S
25
G
243
Posts: 4,387
Reputation: 137,466

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
45
S
11
G
4
Posts: 515
Reputation: 7,389

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
107
S
25
G
243
Posts: 4,387
Reputation: 137,466

Post » Tue Aug 26, 2014 9:14 am

:) even better!
B
45
S
11
G
4
Posts: 515
Reputation: 7,389

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
78
S
36
G
13
Posts: 955
Reputation: 15,260

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
22
S
6
G
1
Posts: 1,365
Reputation: 4,724

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 4 guests