- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Potential date issue Jan 10 2004?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2003 08:17 AM
12-09-2003 08:17 AM
Potential date issue Jan 10 2004?
"On 10 January 2004, UNIX time will increase from a 30-bit number to a 31-bit number. After that time, in certain time calculations, there is a risk of sign errors or other instabilities in any UNIX-based system. This problem has only recently been discovered certain systems. Modifications are required in those systems but these modifications appear not to be major.
The calculation at risk is of the following type:
Average time AB = (Time A + Time B)/2"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2003 08:21 AM
12-09-2003 08:21 AM
Re: Potential date issue Jan 10 2004?
I have not heard that.
I am told that Unix uses a clock that started Jan 1, 1970.
That would mean that a mathematical forumla to show that the value had to be 31 bit after the date January 10, 2004.
Since it is now 31 days to that deadline I'll go out on a limb: If the problem was real, we'd know about it by now.
Looking forward to seeing the math and other comments.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2003 08:35 AM
12-09-2003 08:35 AM
Re: Potential date issue Jan 10 2004?
int i,j,k;
main()
{
i=0x7fffffff;
j=i-12340;
k=(i+j)/2;
printf("i is %d\n", i);
printf("j is %d\n", j);
printf("k is %d\n", k);
}
$ a.out
i is 2147483647
j is 2147471307
k is -6171
Realistically though, I'm not sure how many apps would do calculations by adding 2 time values.
My 2 cents...
-- Rod Hills
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2003 08:36 AM
12-09-2003 08:36 AM
Re: Potential date issue Jan 10 2004?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2003 08:46 AM
12-09-2003 08:46 AM
Re: Potential date issue Jan 10 2004?
thats certainly worth looking for.
Easy workaroud:
Average time AB = Time A + (Time B - Time A)/2".
be happy,
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2003 05:56 PM
12-09-2003 05:56 PM
Re: Potential date issue Jan 10 2004?
/usr/include/sys/_time_t.h can give you some answers. Right here I have both 10.20 and 11 systems that use a long for time_t, the type used for time values... So no problem there.