Sponsored Content
Full Discussion: Bug in Gnu date?
Top Forums Shell Programming and Scripting Bug in Gnu date? Post 303025388 by apmcd47 on Thursday 1st of November 2018 08:34:52 AM
Old 11-01-2018
Quote:
Originally Posted by Don Cragun
Your timezone is not determined by your locale setting. What does the following command output:
Code:
echo $TZ

It's not set. However the file /etc/timezone contains the string Europe/London; the file /usr/share/zoneinfo/Europe/London links to ../GB, ie /usr/share/zoneinfo/GB.

Or, more succinctly, I am using the default system timezone, which was set to Europe/London when I installed this system.

Andrew

Last edited by apmcd47; 11-01-2018 at 09:53 AM..
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

GNU Date

I know there are some posts on getting the time with milliseconds included and I realize unix may not be the best on this. I have seem some posts where its advised to install the GNU date. Any one know where I can download this as I am struggling to find it. Alternatively - if you have... (5 Replies)
Discussion started by: frustrated1
5 Replies

2. Shell Programming and Scripting

Howto: easy date range iteration/counting on GNU systems in the shell

Should work in any shell, but requires GNU date, although GNU date seems only to be happy for input dates between 1902 and 2037, inclusive (49673 days). Assume $a and $b hold two dates, e.g. set a=2010-03-27 set b=2010-04-04 Marginally faster: iterator: seq -f "$a +%1.0f days" 1 50000 |... (0 Replies)
Discussion started by: laddiebuck
0 Replies

3. Linux

Date from GNU to BSD

Dear all, This should be simple but I cannot figure it out despite reading all the man pages. Could someone please help me translate this code (GNU date) to one that can be read by BSD date?: myDate=$(date -d "$h -$l days" +%Y/%m/%d), where h is a variable of the form DD/MM/YYYY, and l is... (3 Replies)
Discussion started by: thomchad
3 Replies

4. UNIX for Dummies Questions & Answers

Getting date -1 day not using GNU date

It's easy as pie to get the date minus one day on opensolaris: date -d "-1 day" +"%Y%m%d"run this command on our crappy Solaris 10 machines however (which I'm guessing doesn't have GNU date running on it) and you get: date: illegal option -- d date: illegal option -- 1 date: illegal option --... (5 Replies)
Discussion started by: rich@ardz
5 Replies

5. Shell Programming and Scripting

Converting a date to friday date and finding Min/Max date

Dear all, I have 2 questions. I have a file with many rows which has date of the format YYYYMMDD. 1. I need to change the date to that weeks friday date(Ex: 20120716(monday) to 20120720). Satuday/Sunday has to be changed to next week friday date too. 2. After converting the date to... (10 Replies)
Discussion started by: 2001.arun
10 Replies

6. Linux

Bug in date command?

Why is the result of this command off (or less) by one hour date --date "1979-10-26 +54 hours" +%Y%m%d%H The result is 1979102805 It actually should be 1979102806 It does it with adding minutes as well and only occurs on Oct. 26, from what I can tell. What's going on here? (9 Replies)
Discussion started by: hsemune
9 Replies

7. UNIX for Advanced & Expert Users

Regarding question for GNU date

Hello All, Greetings all !! I have a query here, following are the points on same(Adding today's is 31st August 2016 for future reference). 1st Scenario: So while doing some work on GNU date, I wanted to check what was the month(in numbers) by GNU date so I have done following. date... (2 Replies)
Discussion started by: RavinderSingh13
2 Replies

8. Shell Programming and Scripting

Date: invalid date trying to set Linux date in specific format

i try to set linux date & time in specific format but it keep giving me error Example : date "+%d-%m-%C%y %H:%M:%S" -d "19-01-2017 00:05:01" or date +"%d-%m-%C%y %H:%M:%S" -d "19-01-2017 00:05:01" keep giving me this error : date: invalid date ‘19-01-2017 00:05:01' Please use CODE tags... (7 Replies)
Discussion started by: umen
7 Replies
TZ_CONVERT(1)															     TZ_CONVERT(1)

NAME
tz_convert - Timezone converter from operating system tz format into libical format used by Orage and several other calander tools. SYNOPSIS
tz_convert [OPTION...] [INFILE] DESCRIPTION
tz_convert is a command line tool, which can be used to convert timezone data from so called tz binary format, usually used in operating systems, to libical format, used by several calenders like Orage. There are several options available to only convert certain files or files in certain directory. Or only convert part of the file and ignore for example old data. It is also possible to add new timezone files, which are based on old timezone data. There are tools, which generate ical timezones data from tz source database, but those are often not available for normal users and are difficult to use. So often libical timezones are not upto date. tz_convert reads directly the binary tz data and makes it possible to keep libical timezones up to date. The tool is mainly meant to be used by distro maintainers, but it should be easy and clear enough for all users. FILES
tz timezone files often can be found in directory /usr/share/zoneinfo. For example Europe/Helsinki. libical timezone files needs to be where you calendar can find them. For Xfce and Orage systems they are located under your Xfce directory in share/orage/libical/zoneinfo. For example Europe/Helsinki.ics. (use locate to find them.) OPTIONS
-V, --version Print version information and exit. -?, --help Show this help message and exit. --usage Show short usage summary. -i, --infile tz file name from operating system to convert from. If this is directory, all files in it are processed. Default is /usr/share/zoneinfo -o, --outfile ical timezone file name to be written. This can not be directory. It is meant to be used together with timezone parameter. This is very seldom used. Default is timezone/infile.ics -m, --message debug message level. How much exra information is shown. 0 is least and 10 is highest (1=default). May give usefull information when things do not work as expected. -l, --limit limit processing to newer than this year. Often there is a lot of old data available, which is not needed in normal day to day work and skipping unused years helps to improve performance. Default is to ignore older than year 1970 time changes. -t, --timezone timezone name to be used in the actual file. Normally file name is the same as timezone name, but if you want to create your own timezone, you need new file name, which contains some known timezone name. This is used together with outfile parameter. -r, --norecursive process only main directory, instead of all subdirectories. 0 = recursive 1 = only main directory (0=default). -c, --exclude count number of excluded directories. 5 = default (You only need this if you have more than 5 excluded directories). This is used together with exclude parameter. -x, --exclude do not process this directory, skip it. You can give several directories with separate parameters. By default directories right and posix are excluded, but if you use this parameter, you have to specify those also. You need to use exclude count if you have more than 5 exclude directories. -u, --norrule do not use RRULE ical repeating rule, but use RDATE instead. Not all calendars are able to understand RRULE correctly with timezones. (Orage should work fine with RRULE). 0 = use RRULE 1 = do not use RRULE (0=default). BUGS
Please report any bugs and enhancement requests to http://bugzilla.xfce.org/. Note that tz_convert is part of orage so bugs are reported against orage and component tz_convert. Usage related questions can be sent to xfce@xfce.org email list. HOMEPAGE
http://www.xfce.org/projects/orage/ AUTHOR
tz_convert was written by Juha Kautto <juha@xfce.org>. This manual page was written by Juha Kautto <juha@xfce.org>. 05/28/2009 TZ_CONVERT(1)
All times are GMT -4. The time now is 08:35 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy