Local date and time vs. Global date and time
The difference between Local date⁄time and the Global date⁄time
local date and time | global date and time |
---|---|
expressing the same specific time (a fixed time) in each time zone (a fixed time different moments from one region to another) | expressing the same time(moment) across all time zones (a fixed moment different times from one region to another) |
uses T or space | uses T or space AND Z or + / - |
valid formats below: | valid formats below: |
YYYY-MM-DDThh:mm:ss.msmsms YYYY-MM-DD hh:mm:ss.msmsms | YYYY-MM-DDThh:mm:ss.msmsmsZ YYYY-MM-DD hh:mm:ss.msmsmsZ YYYY-MM-DDThh:mm:ss.msmsms+hh:mm YYYY-MM-DD hh:mm:ss.msmsms+hh:mm YYYY-MM-DDThh:mm:ss.msmsms+hhmm YYYY-MM-DD hh:mm:ss.msmsms+hhmm YYYY-MM-DDThh:mm:ss.msmsms-hh:mm YYYY-MM-DD hh:mm:ss.msmsms-hh:mm YYYY-MM-DDThh:mm:ss.msmsms-hhmm YYYY-MM-DD hh:mm:ss.msmsms-hhmm |
example: | example: |
EMEAR offices: a gift for everyone at 1600 | EMEAR offices: online conference at 1600 UTC |
explanations: | explanations: |
provided in the video below | provided in the video below |
parts of syntax marked up in green are optional parts of syntax marked up in orange are required |
Video demonstration local date and time vs. global date and time
HTML5: local date and time vs. global date and time Tutorial
min | video details |
---|---|
00:00 | video tutorial: local date and time vs. global date and time |
00:06 | local date and time |
00:06 | local date and time allows you to express the same time in each time zone e.g. 4pm in each time zone |
00:18 | example:2 notifications (about a meeting and a gift) from London (the headquarter) toward its EMEA offices (Freetown, Berlin, Dubai), each having a different time zone. This happens during winter when Freetown is UTC+00, same is London, Berlin is UTC+1, while Dubai is UTC+4. |
01:21 | we are in London and we email all EMEA offices that during the day at 4pm everyone will receive a gift,than a 4pm is enough and the valid time-datetime format to be used as value of the datetime attribute is the local date and time(the one without Z at the end) |
01:35 | → all of them will receive a gift at 4pm but the 4pm is different from one zone to other, as follows: in London (UTC+00) will be 4pm in Freetown (UTC+00) will be 4pm in Berlin (UTC+01) will be 4pm = 1h later than the employees from London and Freetown in Dubai (UTC+04) will be 4pm = 4h later than the employees from London and Freetown and 3h later than those from Berlin → same hour and date (date and time) but different moments |
01:43 | the employees from Freetown and London will open the gifts at the same moment in time |
00:38 | global date and time |
00:11 | global date and time allows you to express the same moment in time across all time zones e.g. the equivalent of 4pm UTC across all time zones |
00:38 | GLOBAL date and time:let's say we are in London and we set up an online meeting at 16:00 with all (all employees from all EMEA offices, those 4 locations) |
00:45 | in order to have everyone online at the same moment in time across all those 4 different time zones we will specify the UTC and the valid time-datetime format to be used as value of the datetime attribute is the global date and time,(the one having Z in the end which means UTC time) |
01:01 | → all of them will be online at 16:00 UTC but the hour will be different per location, as follows: in London (UTC+00) will be 4pm in Freetown (UTC+00) will be 4pm in Berlin (UTC+01) will be 5pm in Dubai (UTC+04) will be 8pm => same moment but different hours (time) |