[Plugin] System date and time

1 favourites
From the Asset Store
An educational game for Times Table. An easy to use template for developers to build larger games
  • Unconnected

    time away L only uses seconds to get elapsed time, it does not consider Daylight Savings Time.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I meant an hour worth of seconds.

    Sorry, I'm a tad bit confused.

    It isn't considered as in 3600 seconds will be lost/gained, or it isn't considered because the seconds counted isn't effected?

    In a time based game an hour could make a huge difference.

    Daylight savings time follows rules.

    begins at 2:00 a.m. on the second Sunday of March and

    ends at 2:00 a.m. on the first Sunday of November

    It shouldn't be hard for me to implement that if needed.

    I just don't want to break stuff in my game.

    I appreciate the time.

    Thanks again.

  • Unconnected

    It gets elapsed time (in seconds) by unix timestamp.

  • Hi! Will there be an updated version of this and the other time addons for Construct 3? Its almost the only plugin I use for my apps and games.

  • Thank you very much! <img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt=":D" title="Very Happy">

    How can I install it in C3? Drag and drop did not work and I could not find anything in settings.

    /edit: found the addon manager in the menu. I renamed the .zip to .c3addon and it seems to work now. <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

    PS: the link to momentjs is 404 not found

    [quote:lrnd4iei]It is recommended using rex_momentjs to get formatted date string

    https://rexrainbow.github.io/C3RexDoc/p ... entjs.html

  • Bl4ckSh33p

    I got "rex_date.c3addon" from that download link in firefox, I have no idea why you got zip download.

    rex_momentjs is a C2 plugin which have not converted to C3 plugin yet.

  • true, the link is c3addon but Edge saves a .zip when I click on the download link. seems it recognizes that its a zip file and adds the "proper" extension?

  • Hi,

    I am about to start sending out prototype builds of a game I have developed to schools for testing and feedback and what not.

    What I am looking to do is make a timed demo, in the sense that after they launch the prototype for the first time it will log the date and time and then be able to reference that against the current system time to be able to tell time passage and therefore stop the demo after 30 days for example.

    I have your time-related plugins but not sure how to use them (i understand getting the two unix timestamps but what how do i actually calculate time passage.)

    All help appreciated,

    Thanks.

  • 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.

  • 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.

  • @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

  • @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.

  • 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....

  • 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.

Jump to:
Active Users
There are 2 visitors browsing this topic (0 users and 2 guests)