date to display the EDT timeHow to command “Ping” display time and date of pingHow to stop the first command the failing to affect the second commandDate and time of execution of a programHow to command “hping3” display time and date of hping3Can I change the ipconfig names to the old convention? wlanX, ethX?crontab job not workingSet date and time from http header in router with curl or wgetIs the current Date/Time format retrievable?How to find a binary name with only the prefix?date -d 'previous Monday" to display the preceding Monday
Why did other houses not demand this?
What did the 'turbo' button actually do?
How to let other coworkers know that I don't share my coworker's political views?
Variable declaraton with extra in C
Why is 'additive' EQ more difficult to use than 'subtractive'?
How to ethically utilize ability to transfer life from one human to another?
How to politely tell someone they did not hit reply all in email?
Why does the Starter Set wizard have six spells in their spellbook?
Using too much dialogue?
Testing using real data of the customer
What is the recommended procedure to land a taildragger in a crosswind?
How was Daenerys able to legitimise Gendry?
If I arrive in the UK, and then head to mainland Europe, does my Schengen visa 90 day limit start when I arrived in the UK, or mainland Europe?
The disk image is 497GB smaller than the target device
Why does the hash of infinity have the digits of π?
Time complexity of an algorithm: Is it important to state the base of the logarithm?
What could a self-sustaining lunar colony slowly lose that would ultimately prove fatal?
Why do Russians almost not use verbs of possession akin to "have"?
What is the use case for non-breathable waterproof pants?
Is it legal to have an abortion in another state or abroad?
USPS Back Room - Trespassing?
Can we show a sum of symmetrical cosine values is zero by using roots of unity?
How did NASA Langley end up with the first 737?
Where is Jon going?
date to display the EDT time
How to command “Ping” display time and date of pingHow to stop the first command the failing to affect the second commandDate and time of execution of a programHow to command “hping3” display time and date of hping3Can I change the ipconfig names to the old convention? wlanX, ethX?crontab job not workingSet date and time from http header in router with curl or wgetIs the current Date/Time format retrievable?How to find a binary name with only the prefix?date -d 'previous Monday" to display the preceding Monday
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I want to check the time
Eastern Daylight Time
Time zone in Washington, DC, USA (GMT-4)
Thursday, May 9, 2019, 8:11 PM
However,
$ TZ="EDT" date
Fri May 10 00:12:25 EDT 2019
"EST" works properly
$ TZ="EST" date
Thu May 9 19:13:11 EST 2019
What's the problem?
command-line bash
add a comment |
I want to check the time
Eastern Daylight Time
Time zone in Washington, DC, USA (GMT-4)
Thursday, May 9, 2019, 8:11 PM
However,
$ TZ="EDT" date
Fri May 10 00:12:25 EDT 2019
"EST" works properly
$ TZ="EST" date
Thu May 9 19:13:11 EST 2019
What's the problem?
command-line bash
add a comment |
I want to check the time
Eastern Daylight Time
Time zone in Washington, DC, USA (GMT-4)
Thursday, May 9, 2019, 8:11 PM
However,
$ TZ="EDT" date
Fri May 10 00:12:25 EDT 2019
"EST" works properly
$ TZ="EST" date
Thu May 9 19:13:11 EST 2019
What's the problem?
command-line bash
I want to check the time
Eastern Daylight Time
Time zone in Washington, DC, USA (GMT-4)
Thursday, May 9, 2019, 8:11 PM
However,
$ TZ="EDT" date
Fri May 10 00:12:25 EDT 2019
"EST" works properly
$ TZ="EST" date
Thu May 9 19:13:11 EST 2019
What's the problem?
command-line bash
command-line bash
edited May 10 at 2:28
Kulfy
6,11272451
6,11272451
asked May 10 at 0:14
AliceAlice
655112
655112
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
date
command doesn't know "EDT" timezone. If a timezone which isn't supported is passed in TZ the output will indeed show with entered time zone but time shown will be UTC.
Supported time zones are listed in /usr/share/zoneinfo/. As of now time zones that can be used as a value for "TZ" are:
Africa Cuba GMT0 Japan Pacific Turkey
America EET GMT-0 Kwajalein Poland UCT
Antarctica Egypt GMT+0 leap-seconds.list Portugal Universal
Arctic Eire Greenwich Libya posix US
Asia EST Hongkong localtime posixrules UTC
Atlantic EST5EDT HST MET PRC WET
Australia Etc Iceland Mexico PST8PDT W-SU
Brazil Europe Indian MST right zone1970.tab
Canada Factory Iran MST7MDT ROC zone.tab
CET GB iso3166.tab Navajo ROK Zulu
Chile GB-Eire Israel NZ Singapore
CST6CDT GMT Jamaica NZ-CHAT SystemV
The time zone for EDT is "EST5EDT". The output of TZ="EST5EDT" date
as of 10 May 2019 02:11:26 UTC:
Thu May 9 22:11:26 EDT 2019
Or use city's name where EDT is used. Examples: America/Kentucky/Louisville, America/Kentucky/Monticello, America/New_York, Canada/Eastern, etc.
Why EDT is EST5EDT?
In short, it is a standard. Time zones are written like Timezone-Offset. Here - is minus or it can be said for time zones which are ahead of UTC are written like Timezone-Offset and for time zones that are behind UTC, it is written as TimezoneOffset. If the time zone has a pretty name like Eastern Standard Time, it can be written as EST or EST5. Both will produce same results.
Now, Daylight Saving Time (DST) isn't observed everywhere (for example, India). For time zones where it is observed, time zones are written as Timezone-OffsetTimezoneDST, example: EET-2EETDST (Cyprus) but if DST has a fancy name like BST (British Summer Time), it is written as Timezone-OffsetFancy_name, i.e. GMT0BST. Similary, EDT is EST5EDT. On this Oracle document you can see all standardized time zones.
add a comment |
EDT
is ambiguous when considered internationally. You can get the time you are seeking by doing
$ TZ="America/New_York" date
Thu May 9 22:11:16 EDT 2019
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1141967%2fdate-to-display-the-edt-time%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
date
command doesn't know "EDT" timezone. If a timezone which isn't supported is passed in TZ the output will indeed show with entered time zone but time shown will be UTC.
Supported time zones are listed in /usr/share/zoneinfo/. As of now time zones that can be used as a value for "TZ" are:
Africa Cuba GMT0 Japan Pacific Turkey
America EET GMT-0 Kwajalein Poland UCT
Antarctica Egypt GMT+0 leap-seconds.list Portugal Universal
Arctic Eire Greenwich Libya posix US
Asia EST Hongkong localtime posixrules UTC
Atlantic EST5EDT HST MET PRC WET
Australia Etc Iceland Mexico PST8PDT W-SU
Brazil Europe Indian MST right zone1970.tab
Canada Factory Iran MST7MDT ROC zone.tab
CET GB iso3166.tab Navajo ROK Zulu
Chile GB-Eire Israel NZ Singapore
CST6CDT GMT Jamaica NZ-CHAT SystemV
The time zone for EDT is "EST5EDT". The output of TZ="EST5EDT" date
as of 10 May 2019 02:11:26 UTC:
Thu May 9 22:11:26 EDT 2019
Or use city's name where EDT is used. Examples: America/Kentucky/Louisville, America/Kentucky/Monticello, America/New_York, Canada/Eastern, etc.
Why EDT is EST5EDT?
In short, it is a standard. Time zones are written like Timezone-Offset. Here - is minus or it can be said for time zones which are ahead of UTC are written like Timezone-Offset and for time zones that are behind UTC, it is written as TimezoneOffset. If the time zone has a pretty name like Eastern Standard Time, it can be written as EST or EST5. Both will produce same results.
Now, Daylight Saving Time (DST) isn't observed everywhere (for example, India). For time zones where it is observed, time zones are written as Timezone-OffsetTimezoneDST, example: EET-2EETDST (Cyprus) but if DST has a fancy name like BST (British Summer Time), it is written as Timezone-OffsetFancy_name, i.e. GMT0BST. Similary, EDT is EST5EDT. On this Oracle document you can see all standardized time zones.
add a comment |
date
command doesn't know "EDT" timezone. If a timezone which isn't supported is passed in TZ the output will indeed show with entered time zone but time shown will be UTC.
Supported time zones are listed in /usr/share/zoneinfo/. As of now time zones that can be used as a value for "TZ" are:
Africa Cuba GMT0 Japan Pacific Turkey
America EET GMT-0 Kwajalein Poland UCT
Antarctica Egypt GMT+0 leap-seconds.list Portugal Universal
Arctic Eire Greenwich Libya posix US
Asia EST Hongkong localtime posixrules UTC
Atlantic EST5EDT HST MET PRC WET
Australia Etc Iceland Mexico PST8PDT W-SU
Brazil Europe Indian MST right zone1970.tab
Canada Factory Iran MST7MDT ROC zone.tab
CET GB iso3166.tab Navajo ROK Zulu
Chile GB-Eire Israel NZ Singapore
CST6CDT GMT Jamaica NZ-CHAT SystemV
The time zone for EDT is "EST5EDT". The output of TZ="EST5EDT" date
as of 10 May 2019 02:11:26 UTC:
Thu May 9 22:11:26 EDT 2019
Or use city's name where EDT is used. Examples: America/Kentucky/Louisville, America/Kentucky/Monticello, America/New_York, Canada/Eastern, etc.
Why EDT is EST5EDT?
In short, it is a standard. Time zones are written like Timezone-Offset. Here - is minus or it can be said for time zones which are ahead of UTC are written like Timezone-Offset and for time zones that are behind UTC, it is written as TimezoneOffset. If the time zone has a pretty name like Eastern Standard Time, it can be written as EST or EST5. Both will produce same results.
Now, Daylight Saving Time (DST) isn't observed everywhere (for example, India). For time zones where it is observed, time zones are written as Timezone-OffsetTimezoneDST, example: EET-2EETDST (Cyprus) but if DST has a fancy name like BST (British Summer Time), it is written as Timezone-OffsetFancy_name, i.e. GMT0BST. Similary, EDT is EST5EDT. On this Oracle document you can see all standardized time zones.
add a comment |
date
command doesn't know "EDT" timezone. If a timezone which isn't supported is passed in TZ the output will indeed show with entered time zone but time shown will be UTC.
Supported time zones are listed in /usr/share/zoneinfo/. As of now time zones that can be used as a value for "TZ" are:
Africa Cuba GMT0 Japan Pacific Turkey
America EET GMT-0 Kwajalein Poland UCT
Antarctica Egypt GMT+0 leap-seconds.list Portugal Universal
Arctic Eire Greenwich Libya posix US
Asia EST Hongkong localtime posixrules UTC
Atlantic EST5EDT HST MET PRC WET
Australia Etc Iceland Mexico PST8PDT W-SU
Brazil Europe Indian MST right zone1970.tab
Canada Factory Iran MST7MDT ROC zone.tab
CET GB iso3166.tab Navajo ROK Zulu
Chile GB-Eire Israel NZ Singapore
CST6CDT GMT Jamaica NZ-CHAT SystemV
The time zone for EDT is "EST5EDT". The output of TZ="EST5EDT" date
as of 10 May 2019 02:11:26 UTC:
Thu May 9 22:11:26 EDT 2019
Or use city's name where EDT is used. Examples: America/Kentucky/Louisville, America/Kentucky/Monticello, America/New_York, Canada/Eastern, etc.
Why EDT is EST5EDT?
In short, it is a standard. Time zones are written like Timezone-Offset. Here - is minus or it can be said for time zones which are ahead of UTC are written like Timezone-Offset and for time zones that are behind UTC, it is written as TimezoneOffset. If the time zone has a pretty name like Eastern Standard Time, it can be written as EST or EST5. Both will produce same results.
Now, Daylight Saving Time (DST) isn't observed everywhere (for example, India). For time zones where it is observed, time zones are written as Timezone-OffsetTimezoneDST, example: EET-2EETDST (Cyprus) but if DST has a fancy name like BST (British Summer Time), it is written as Timezone-OffsetFancy_name, i.e. GMT0BST. Similary, EDT is EST5EDT. On this Oracle document you can see all standardized time zones.
date
command doesn't know "EDT" timezone. If a timezone which isn't supported is passed in TZ the output will indeed show with entered time zone but time shown will be UTC.
Supported time zones are listed in /usr/share/zoneinfo/. As of now time zones that can be used as a value for "TZ" are:
Africa Cuba GMT0 Japan Pacific Turkey
America EET GMT-0 Kwajalein Poland UCT
Antarctica Egypt GMT+0 leap-seconds.list Portugal Universal
Arctic Eire Greenwich Libya posix US
Asia EST Hongkong localtime posixrules UTC
Atlantic EST5EDT HST MET PRC WET
Australia Etc Iceland Mexico PST8PDT W-SU
Brazil Europe Indian MST right zone1970.tab
Canada Factory Iran MST7MDT ROC zone.tab
CET GB iso3166.tab Navajo ROK Zulu
Chile GB-Eire Israel NZ Singapore
CST6CDT GMT Jamaica NZ-CHAT SystemV
The time zone for EDT is "EST5EDT". The output of TZ="EST5EDT" date
as of 10 May 2019 02:11:26 UTC:
Thu May 9 22:11:26 EDT 2019
Or use city's name where EDT is used. Examples: America/Kentucky/Louisville, America/Kentucky/Monticello, America/New_York, Canada/Eastern, etc.
Why EDT is EST5EDT?
In short, it is a standard. Time zones are written like Timezone-Offset. Here - is minus or it can be said for time zones which are ahead of UTC are written like Timezone-Offset and for time zones that are behind UTC, it is written as TimezoneOffset. If the time zone has a pretty name like Eastern Standard Time, it can be written as EST or EST5. Both will produce same results.
Now, Daylight Saving Time (DST) isn't observed everywhere (for example, India). For time zones where it is observed, time zones are written as Timezone-OffsetTimezoneDST, example: EET-2EETDST (Cyprus) but if DST has a fancy name like BST (British Summer Time), it is written as Timezone-OffsetFancy_name, i.e. GMT0BST. Similary, EDT is EST5EDT. On this Oracle document you can see all standardized time zones.
edited May 10 at 12:46
answered May 10 at 2:12
KulfyKulfy
6,11272451
6,11272451
add a comment |
add a comment |
EDT
is ambiguous when considered internationally. You can get the time you are seeking by doing
$ TZ="America/New_York" date
Thu May 9 22:11:16 EDT 2019
add a comment |
EDT
is ambiguous when considered internationally. You can get the time you are seeking by doing
$ TZ="America/New_York" date
Thu May 9 22:11:16 EDT 2019
add a comment |
EDT
is ambiguous when considered internationally. You can get the time you are seeking by doing
$ TZ="America/New_York" date
Thu May 9 22:11:16 EDT 2019
EDT
is ambiguous when considered internationally. You can get the time you are seeking by doing
$ TZ="America/New_York" date
Thu May 9 22:11:16 EDT 2019
answered May 10 at 2:12
chickschicks
406615
406615
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1141967%2fdate-to-display-the-edt-time%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown