Sponsored Content
Full Discussion: DST change on Compaq Tru64
Operating Systems HP-UX DST change on Compaq Tru64 Post 302565223 by chesti on Monday 17th of October 2011 10:22:00 AM
Old 10-17-2011
I don`t know Tru64 at all. But i think you can use timezone just like you need if it exists in your system. Is there any that would fit?
I guess that you haven`t got support contract?
 

10 More Discussions You Might Find Interesting

1. Programming

HPUX and Compaq problem-urgent

Hi All Following is the lines of code which simply makes a structure of 1 bit member and 7 bit is unused.Then the structure is initialised with char pointer.The output on HPUX(BIG Endian) and Compaq(Little Endian) are different.On HPUX it gives zero and Compaq it gives 1. I never thought that the... (7 Replies)
Discussion started by: Shobhit
7 Replies

2. Filesystems, Disks and Memory

Compaq Scsi

Howto make Debian GNU/Linux install boot on a Compaq DeskPro XL 590 with Compaq SCSI diskdrive? The problem is that Compaq's Scsi controller sems to be odd. help please :) (0 Replies)
Discussion started by: Esaia
0 Replies

3. UNIX for Dummies Questions & Answers

tru64 ip change

I'm trying to change the IP address of a Tru64 v4.0e box. The ifconfig command is not working. I am using the following format (which does not return an error): ifconfig tu1 xxx.xxx.xxx.xxx netmask 255.255.255.0 The xxx* indicates the new IP. After entering that command, an ifconfig -a command... (1 Reply)
Discussion started by: bscottiii
1 Replies

4. SCO

compaq smart array 532

Trying to install Sco openserver on HP Proliant with this scsi controller but no scsi devices detected. Boot controller is set as the smart array 532 but SCSI diags do not detect any SCSI boot devices during boot sequence Any help appreciated (2 Replies)
Discussion started by: farmacy
2 Replies

5. UNIX for Dummies Questions & Answers

Help In Compaq Tru64 UNix

Hi, I am new to UNIX. I need help in working with Compaq-UX TRU64 OS. How It work FTP Server? ANd MAil Server? and I have apach pprogram project and it work as HTTP Server. Also I need how can setup a new version of progrm on UNix like mozilla and adobe reader etc........... Thank... (3 Replies)
Discussion started by: svuad
3 Replies

6. Shell Programming and Scripting

DST Change For Australia

Hello , We are investigating an issue from a customer from Western Australia related to DST change on 25 th March. The customer in Australia has the below settings for Time Zone. The System is Solaris 9. TZ=Australia/NSW CMASK=022 We are trying to reproduce the problem in our local... (1 Reply)
Discussion started by: Mohammed
1 Replies

7. Linux

OS for Compaq Presario 1685

Hi, Trying to install a small OS to run this old laptop. Compaq Presario 1685, circa '98 Processor: AMD K6-2 380 MHz Data Bus Speed: 66 MHz Ram Installed 32 MB moduled Hard Drive: 4.3 GB DVD-ROM Burned in a CD “PUPPY-4.3beta1-k2.6.25.16-v423-SCSI”, tried to boot with it several times BUT... (7 Replies)
Discussion started by: nichos
7 Replies

8. Linux

DST Time Change for positive timezones not working

I was doing timezone and DST testing which is required for some of my products Here is the strange behaviour i observed First i did set the timezone to PST 2010 (which is less than GMT basically negative timezone) zdump -v /etc/localtime |grep 2010 /etc/localtime Sun Mar 14 09:59:59... (0 Replies)
Discussion started by: ravindra1103
0 Replies

9. AIX

Bug in AIX 6.1/7.1 Time Zone DST Change -again

Hi Everyone Just wanted to share with you that IBM AIX is having again problem with Summer Time Shift.. IBM Possible Action Required: System time may not change properly at DST start/end dates on AIX 7.1 and AIX 6.1 - United States For me it means some additional overtimes in the... (0 Replies)
Discussion started by: gito
0 Replies

10. AIX

Change Time Zone to UTC without DST

Hello AIX friends, We have timezone settings on our AIX 6.1 boxes set to Europe/London. How can I change it to UTC timezone with Daylight saving disabled. After running "smit chtz_user" I don't see UTC option in the listing. Please advise. TIA (3 Replies)
Discussion started by: prvnrk
3 Replies
gettimeofday(2) 						System Calls Manual						   gettimeofday(2)

NAME
gettimeofday, settimeofday, ftime, gettimeofday64, settimeofday64, TIMEVAL32TO64, TIMEVAL64TO32 - Gets and sets date and time and converts time between timeval and timeval64 SYNOPSIS
#include <sys/time.h> int gettimeofday( struct timeval *tp, void *tzp ); #include <sys/timeb.h> int ftime( struct timeb *tp ); The following function declarations do not conform to current standards and are supported only for backward compatibility: #include <sys/time.h> int gettimeofday( struct timeval *tp, struct timezone *tzp ); int *settimeofday( struct timeval *tp, struct timezone *tzp ); The following data type, function declarations, and macros are Compaq extensions and do not conform to current standards. These features are provided to support the time64_t data type and are accessible only when the _TIME64_T feature macro is defined during compilation. #include <sys/time.h> struct timeval64 { time64_t tv_sec; /* seconds */ int tv_usec; /* microseconds */ }; int gettimeofday64( struct timeval64 *tp64, void *tzp ); void TIMEVAL32TO64( tv32, tv64 ); int TIMEVAL64TO32( tv64, tv32 ); The following function declarations correspond to their non-standard counterparts above, using timeval64 in place of timeval: int gettime- ofday64( struct timeval64 *tp64, struct timezone *tzp ); int settimeofday64( struct timeval64 *tp64, struct timezone *tzp ); LIBRARY
Standard C Library (libc) STANDARDS
Interfaces documented on this reference page conform to industry standards as follows: gettimeofday(), ftime(): XPG4-UNIX Refer to the standards(5) reference page for more information about industry standards and associated tags. PARAMETERS
For gettimeofday() and settimeofday(), points to a timeval structure, defined in the <sys/time.h> file. For ftime(), points to a timeb structure, defined in the <sys/timeb.h> file. [Tru64 UNIX] For the backward-compatible versions of gettimeofday() and settimeofday(), points to a timezone structure, defined in the <sys/time.h> file. For gettimeofday64() and set- timeofday64(), points to a timeval64 structure, defined in the <sys/time.h> system header file and described below. Refers to a variable of type timeval. Refers to a variable of type timeval64. DESCRIPTION
The gettimeofday(), ftime(), and settimeofday() functions get and set the time and timezone information stored in the kernel. The gettimeofday() function gets the current time, expressed in seconds and microseconds since midnight (0 hour), January 1, 1970 UTC (Coordinated Universal Time, formerly Greenwich Mean Time or GMT), and stores it in the timeval structure pointed to by tp. The ftime() function sets the time and millitm members of the timeb structure pointed to by tp to contain the seconds and milliseconds por- tions, respectively, of the current time in seconds since midnight (0 hour), January 1, 1970 UTC. See the NOTES section for information on the backward-compatible versions of gettimeofday() and settimeofday(). See the timezone(3) reference page for information on timezone handling on Tru64 UNIX systems. The timeval64 struct is identical to the timeval struct defined in the <sys/time.h> system header file except that the tv_sec (seconds) field is of type time64_t. The time64_t data type is described in the time(3) reference page. The timeval64 struct is provided to allow handling of larger time values using the time64_t data type and is only available when the _TIME64_T feature macro is defined during compi- lation. The gettimeofday64() and settimeofday64() functions work exactly as the gettimeofday() and settimeofday() functions (respectively), but use the larger timeval64 struct (referenced by the tp64 pointer) instead of timeval. The current system time setting limits (Jan 1 00:00:00 GMT 1970 through Jan 19 03:14:07 GMT 2038) are not changed by these function or the timeval64 struct. These function declarations are only available when the _TIME64_T feature macro is defined during compilation. The TIMEVAL32TO64() and TIMEVAL64TO32() macros are provided to assist developers converting between values of type timeval and values of type timeval64. The TIMEVAL32TO64() macro converts the values contained in the tv32 struct to values corresponding to timeval64 struct mem- bers, storing the results in tv64 and performing sign-extension on the tv_sec (seconds) field as appropriate. The TIMEVAL64TO32() macro attempts to convert the values contained in the timeval64 struct tv64 to values corresponding to timeval struct members, storing the results in tv32. If the value of the tv_sec (seconds) field of tv64 overflows the size of a time_t, the value of the TIMEVAL64TO32() macro will be 1 and the values contained in tv32 are undefined. Otherwise, the value of the TIMEVAL64TO32() macro will be 0 and tv32 will contain the converted values from tv64. These conversion macros are only available when the _TIME64_T feature macro is defined during com- pilation. NOTES
The following information applies only to the backward-compatible versions of the gettimeofday() and settimeofday() functions. [Tru64 UNIX] The timezone structure that is returned for the gettimeofday() call is set at boot time by the /sbin/init.d/settime script. The tz_minuteswest field of the structure is set to your local time zone. This field is set only for backward compatibility with older applications that may use the gettimeofday() call for timezone information. The tz_dsttime field is set to zero because this field is obsolete. [Tru64 UNIX] On SVID2-compatible systems, local timezone information is maintained in the kernel, although the information is not as accu- rate or as complete as the information that can be maintained at user level. On these systems, you can use the tzp parameter with gettime- ofday() and settimeofday() to get and set timezone information in addition to the time. The tzp parameter returns a pointer to a timezone structure that contains the local timezone expressed in minutes of time westward from Greenwich and a flag that, when nonzero, indicates that daylight savings time applies locally during some part of the year. Note that, if the tzp parameter is set to NULL, timezone informa- tion is not returned or set. [Tru64 UNIX] A process must have the sysattr effective privilege to use settimeofday(). The above notes also pertain to the non-standard versions of gettimeofday64() and settimeofday64() as well. RETURN VALUES
Upon successful completion, a value of 0 (zero) is returned from gettimeofday(), settimeofday(), gettimeofday64(), and settimeofday64(). Otherwise, -1 is returned and errno is set to indicate the error. ERRORS
If the gettimeofday(), settimeofday(), gettimeofday64(), or settimeofday64() functions fail, errno may be set to the following values: [Tru64 UNIX] A parameter points to an invalid address. [Tru64 UNIX] The process's effective user ID does not have the sysattr effective privilege, which is required for using settimeofday() and settimeofday64(). SEE ALSO
Commands: date(1), zdump(8), zic(8) Functions: adjtime(2), ctime(3), getclock(3), gettimer(3), setclock(3), strftime(3), timezone(3), time(3) Files: tzfile(4) Standards: standards(5) gettimeofday(2)
All times are GMT -4. The time now is 12:02 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy