LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-08-2016, 06:35 AM   #1
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,900

Rep: Reputation: 5023Reputation: 5023Reputation: 5023Reputation: 5023Reputation: 5023Reputation: 5023Reputation: 5023Reputation: 5023Reputation: 5023Reputation: 5023Reputation: 5023
CEST Timezone?


Code:
test@ws1:~$ TZ=UTC date
Sat  8 Oct 11:32:46 UTC 2016
test@ws1:~$ TZ=CET date
Sat  8 Oct 13:32:51 CEST 2016
test@ws1:~$ TZ=CEST date
Sat  8 Oct 11:33:02 CEST 2016
Anyone?

edit:
Code:
test@ws1:~$ TZ=WIBBLE date
Sat  8 Oct 11:38:29 WIBBLE 2016
lol. I guess it just does something stupid if it doesn't recognise the TZ, though why it doesn't recognise CEST is a little odd.

Last edited by GazL; 10-08-2016 at 06:40 AM.
 
Old 10-08-2016, 08:18 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,728

Rep: Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919
CEST is not a timezone. It is the designation(bad terminology?) for CET during daylight saving time.

https://en.wikipedia.org/wiki/List_o...ase_time_zones
 
1 members found this post helpful.
Old 10-08-2016, 10:47 AM   #3
jmccue
Member
 
Registered: Nov 2008
Location: US
Distribution: slackware
Posts: 693
Blog Entries: 1

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
I usually set TZ equal to a file under /usr/share/zoneinfo, example:

Code:
% date
Sat Oct  8 11:44:28 EDT 2016
% setenv TZ /usr/share/zoneinfo/America/North_Dakota/New_Salem
% date
Sat Oct  8 10:44:35 CDT 2016
John
 
Old 10-08-2016, 10:50 AM   #4
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,900

Original Poster
Rep: Reputation: 5023Reputation: 5023Reputation: 5023Reputation: 5023Reputation: 5023Reputation: 5023Reputation: 5023Reputation: 5023Reputation: 5023Reputation: 5023Reputation: 5023
Ahh, thankyou. I was under the mistaken idea that CET would give you non-dst time and CEST would give you the time with the dst adjustment applied, and the fact that 'date' was silently ignoring the undefined TZ value didn't help.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
timezone is chaning mohitvad Linux - Newbie 4 10-15-2012 03:49 PM
[SOLVED] setting timezone Manu_chitradurga Linux - Embedded & Single-board computer 4 12-12-2011 11:58 PM
(re)set timezone mcisco Linux - Newbie 2 03-13-2009 08:56 AM
/etc/TIMEZONE snippy Solaris / OpenSolaris 1 06-24-2008 06:35 PM
Timezone Again rch LQ Suggestions & Feedback 5 05-19-2003 11:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration