05-02-2011
Quote:
Originally Posted by
rbatte1
The definition for date to change and even the time of change varies with where you are in the world.
It also varies by year.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi
In the foll example the whole text in a single line....
i want to extract text from IPTel to RTCPBase.h.
want to use this acrooss the whole file
Updated: IPTel\platform\core\include\RTCPBase.h \main\MWS2051_Sablime_Int\1... (7 Replies)
Discussion started by: manish205
7 Replies
2. UNIX for Advanced & Expert Users
Hi all... I was accidentally wipe off my iphone and lost all the data in it:(. So I tried to use dd to create an image from iphone and ssh to the Mac by using:
dd if=/dev/disk | ssh user@MacIP of='image.img'
Then I mount this image on Mac/Windows and run recovery software because most of the... (1 Reply)
Discussion started by: seraphc
1 Replies
3. Shell Programming and Scripting
Not sure if the title of this thread makes sense, but hopefully my explanation will.
I'm using awk to print some stats from an apache accesslog. I would like to specify the regexp condition where only the two root pages of "index.html" and "/" are counted in my results. What I can't figure out... (3 Replies)
Discussion started by: picassolsus
3 Replies
4. Shell Programming and Scripting
Hello All,
Below mentioned is my log file.
I want to make a script which ask for start time and then end time and then search particular word between those lines.
Like
start time:2
end time: 4
and then search all values starting from cell 84 between this time.
Please Help
... (2 Replies)
Discussion started by: wakhan
2 Replies
5. Shell Programming and Scripting
I need help with perl code. I have a data file with lots of data
example: data.txt file
START
DATA1 sjdfh kjhdf
DATA2 sdkjfhk jds dshfgdf
... Around 20 - 30 lines
END
LDDDD awdkjasd a sdkahgdk jasdh
SOME CRAP
Some EMPTY lines etc
START
DATA1 sjdfh kjhdf
DATA2 sdkjfhk jds... (2 Replies)
Discussion started by: chakrapani
2 Replies
6. Programming
I have an array of distances and a len, for example
len = 323
dist =
I want to calculate the start and end index values around each distance in the array with a length of len from it. Values in dist are stored in ascending order. (4 Replies)
Discussion started by: kristinu
4 Replies
7. Shell Programming and Scripting
Hi,
I am trying to remove lines once a string is found till another string is found including the start string and end string. I want to basically grab all the lines starting with color (closing bracket). PS: The line after the closing bracket for color could be anything (currently 'more').... (1 Reply)
Discussion started by: Dabheeruz
1 Replies
8. Shell Programming and Scripting
Hello
I'm using cygwin and wouldlike extract information from an xml file according specific values, but don't know how.
Let's say in a file content looks like this:
<tab>
SURNAME=Mustermann
NAME=Max
CUSTOMER SINCE= 18.01.2000
ADDRESS=Birmingham
... (2 Replies)
Discussion started by: witchblade
2 Replies
9. Shell Programming and Scripting
Hi all,
I have a fasta file of a reference sequnce, I will like to retrieve sequences corresponding to a list of start and end position in another file
>my_ref_seq
GCCCTATAAGGGCAGAAGCTTGTCCTTCTTGTGCCAGTTATGACGTTTGTCCTAACTGCACATCTGGTAG... (4 Replies)
Discussion started by: Ibk
4 Replies
10. UNIX for Beginners Questions & Answers
Below are my custom period start and end dates based on a calender, these dates are placed in a file, for each period i need to split into three weeks for each period row, example is given below.
Could you please help out to achieve solution through shell script..
File content:
... (2 Replies)
Discussion started by: nani2019
2 Replies
TZ(5) File Formats Manual TZ(5)
NAME
TZ - Time zone environment variable
SYNOPSIS
TZ=zone[-]offset[dst[offset][,start[/time],end[/time]]]
DESCRIPTION
The TZ environment variable tells functions such as the ctime(3) family and programs like date what the time zone and daylight saving rule
is. The value of TZ has the POSIX standardized form shown in the synopsis. This form specifies the zone names, offsets from GMT, and day-
light savings changeover times for at least the current year.
zone A three or more letter name for the time zone in normal (winter) time.
[-]offset
A signed time telling the offset of the time zone westwards from Greenwich. The time has the form hh[:mm[:ss]] with a one of two
digit hour, and optional two digit minutes and seconds.
dst The name of the time zone when daylight savings is in effect. It may be followed by an offset telling how big the clock correction
is other than the default of 1 hour.
start/time,end/time
Specifies the start and end of the daylight savings period. The start and end fields indicate on what day the changeover occurs.
They must be in one of the following formats:
Jn The Julian day n (1 <= n <= 365) ignoring leap days, i.e. there is no February 29.
n The zero-based Julian day (0 <= n <= 365). Leap days are not ignored.
Mm.n.d
This indicates month m, the n-th occurrence of day d (1 <= m <= 12, 1 <= n <= 5, 0 <= d <= 6, 0=Sunday). The 5-th occurrence
means the last occurrence of that day in a month. So M4.1.0 is the first Sunday in April, M9.5.0 is the last Sunday in Septem-
ber.
The time field indicates the time the changeover occurs on the given day.
EXAMPLES
Greenwich Mean Time:
TZ=GMT0
Middle European Time, 1 hour east from Greenwich, daylight savings starts on the last Sunday in March at 2 AM and ends on the last Sunday
in October at 3 AM:
TZ='MET-1MET DST,M3.5.0/2,M10.5.0/3'
British time, daylight savings starts and ends at the same moment as MET, but in an earlier time zone:
TZ=GMT0BST,M3.5.0/1,M10.5.0/2
The eastern european time zones also have the changeovers at the same absolute time as British time and MET.
U.S. Eastern Standard Time, 5 hours west from Greenwich, daylight savings starts on the first Sunday in April at 2 AM and ends on the last
Sunday in October at 2 AM:
TZ=EST5EDT,M4.1.0/2,M10.5.0/2
It shouldn't surprise you that daylight savings in New Zealand is observed in the months opposite from the previous examples. It starts on
the first Sunday in October at 2 AM and ends on the third Sunday in March at 3 AM:
TZ=NZST-12NZDT,M10.1.0/2,M3.3.0/3
SEE ALSO
readclock(8), date(1).
BUGS
You may have noticed that many fields are optional. Do no omit them, because the defaults are bogus. If you need daylight savings then
fully specify the changeovers.
West is negative, east is positive, ask any sailor.
AUTHOR
Kees J. Bot (kjb@cs.vu.nl)
TZ(5)