Stacks Image 106

My Time
%(my_time)%

Your time displayed in any text of any stack.

Description

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.

New

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.

Demo

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.

New York

Office

%(newyork)%

Jersey HQ

Office

%(jersey)%

Mombasa

Office

%(Mombasa)%

User Settings

A comprehensive overview of this stacks user settings.

Mode

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.

Timezone

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

Macro

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.

Show Seconds

Checkbox to simply show or hide the seconds counter in the displayed time.

Made in England © 2023 Doobox Software
Mastodon - Twitter - Company - Subscribe - Cartloom - Branding - Contact Us

Last modified %(last_mod)%

My Time Stack