Sponsored Content
Top Forums Shell Programming and Scripting Calculating start and end of UK summertime Post 302518863 by rbatte1 on Monday 2nd of May 2011 09:17:19 AM
Old 05-02-2011
The definition for date to change and even the time of change varies with where you are in the world. I'd guess that each country just decided what was best for itself, although there is now a standardised date accross Europe. It caused no end of trouble when our mahines assumed that they were USA and just changed at an unexpected time.

Not much of the world uses Summer Time or Daylight Savings (same concept, different name in the USA) and I suppose that many as you get nearer the equator, is has less of an effect.



Robin
Liverpool/Blackburn
UK
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

extract a particular start and end pattern from a line

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

Complete dump from start to the end

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

String as both start and end anchors in awk

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

searching between start and end time

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

Perl regex using /START/../END/

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

Returning start/end indices

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

Remove lines between the start string and end string including start and end string Python

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

How can I search with start and end criteria?

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

Retrieving sequences corresponding to start and end position

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

Splitting week start date and end date based on custom period start dates

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
ctime64(3C)															       ctime64(3C)

NAME
ctime64(), ctime64_r(), difftime64(), gmtime64(), gmtime64_r(), localtime64(), localtime64_r(), mktime64() - convert date and time to string SYNOPSIS
DESCRIPTION
Converts the calendar time pointed to by timer, representing the time in seconds since the Epoch, and return a pointer to the local time in the form of a string. Equivalent to: Is identical to except that it places the result in the user supplied and returns a pointer to upon success. A buffer length of at least 26 is required. Returns the difference in seconds between two calendar times: time1 - time0. Converts directly to Coordinated Universal Time (UTC), the time standard used by the HP-UX operating system. returns a pointer to the structure. Is identical to except that stores the result in the pointed to by and returns upon success. Corrects for the time zone and any summer time zone adjustments (such as Daylight Savings Time in the USA), according to the contents of the environment variable (see below). returns a pointer to the structure. Is identical to except that stores the result in the pointed to by and returns upon success. Converts the broken-down time (expressed as local time) in the structure pointed to by timeptr into a calendar time value with the same encoding as that of the values returned by The original values of the and components of the structure are ignored, and the original values of the other compo- nents are not restricted to the ranges indicated below. A positive or zero value for causes to initially presume that Daylight Saving Time respectively is or is not in effect for the specified time. A negative value for causes to attempt to determine whether Daylight Saving Time is in effect for the specified time. Upon successful completion, all the components are set to represent the specified calendar time, but with their values forced to the ranges indicated below. The final value of is not set until and are determined. returns the specified calendar time encoded as a value of type The behavior of beyond the supported ranges is undefined. The minimum and maximum dates supported by and are Friday December 13 20:45:52 UTC 1901 and Friday December 31 23:59:59 UTC 9999 respec- tively. and returns NULL and sets errno to if timer is less than the number of seconds that corresponds to the minimum date supported (in other words, as defined in or exceeds the number of seconds that corresponds to the maximum date supported. For more details on (see ctime(3C)). EXTERNAL INFLUENCES
Locale The category determines the interpretation of the bytes within format as single and/or multi-byte characters. Environment Variables The function uses the contents of to set the values of the external variables and also determines the time zone name substituted for the and directives and the time zone adjustments performed by and Two methods for specifying a time zone within are described in environ(5). International Code Set Support Single and multibyte character code sets are supported. RETURN VALUE
For if the buffer is of insufficient length, a NULL is returned and errno set to and return a NULL and set errno to if NULL pointers are passed in as arguments. A NULL is returned and errno is set to if the input to the following routines is not within the supported range: and APPLICATION USAGE
The return values for and point to static data whose contents is overwritten by each call. WARNINGS
The range of extends to 61 to allow for the occasional one or two leap seconds. However, the "seconds since the Epoch" value returned by (see time(2)) and passed as the timer argument does not include accumulated leap seconds. The structure generated by and will never reflect any leap seconds. Upon successful completion, forces the value of the component to the range [0,59]. AUTHOR
was developed by HP. SEE ALSO
time(2), ctime(3C), setlocale(3C), tztab(4), environ(5), lang(5), langinfo(5), thread_safety(5). ctime64(3C)
All times are GMT -4. The time now is 08:24 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy