Your time displayed in any text of any stack.
My time will allow you to display your time absolutely anywhere %(my_time)% in your page.
The stack has what we call a macro. A macro is just a string of text that is unique. You write that macro into any text in any other stack, and the time will be displayed in place of the macro when you preview or publish the page.
You can choose any valid timezone for the time to display, so for example if you live in New York, and you set the New York timezone, then when someone from say Moscow visits the page they see the New York time.
Time softly animates into view when loaded.
If you are in timezone mode, and the api is down for any reason, the stack will gracefully fall back to server mode so you always get a time.
Simple demo showing three instances of the stack injected into three heading stacks.
In the demo we have chosen the option not to show the seconds. You can see how showing the seconds looks at the top of this page.
A comprehensive overview of this stacks user settings.
Choose between: Server Time or Timezone.
Timezone, the default is going to be the most accurate for everyone. It calls an api to get the time for the timezone you provide. So the time displayed will always be the right time for the locale you picked.
Server Time, pings your server for the local time. This means you do not rely on an external api, but can return an incorrect time. For example: you live in New York, but your website is hosted on a server in Iceland. The time returned would be the time in Iceland. You can quickly see by testing the server time if it will work for your website though. If it returns you're local time then your website is hosted in your locale.
The timezone does what it says really, it sets the time to the timezone you provide.
Timezones have a specific format though. You can't just enter "London" for example. That would be Europe/London
You can find a full list of timezones here : https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
By default the stack comes set to New York time and a default macro string of %(new-york)%
A macro is just a string of text, we only place it inside the percent signs and braces to ensure it is unique. It could just as well read "mytime".
To display the time in any text on the page in any other stack, simply write the macro in the text exactly as it appears.
You can change the macro to what ever you like. Maybe %(myParisTime)%. Just ensure it contains no spaces, and is unique to the page.
You can place the macro in the page as many times as you like, and each one will become the time when you preview or publish.
Checkbox to simply show or hide the seconds counter in the displayed time.
Last modified %(last_mod)%