Jump to content
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
HP.com home

Transition Impacts

Tru64 UNIX Software Transition Kit


» HP STK home
» Home
» Overview
» Tools
» Documentation
» Transition impacts
» Identifier types
» Impact list
» Porting to HP-UX
» Glossary
» Help
» Send us feedback
Site maps
» Tru64 UNIX STK
Content starts here

critical impact:

tm data structure - differences (CrCh117)

DA Impacts

Problem description

The tm_gmtoff and tm_zone fields are not available in the tm data structure on HP-UX.

On Tru64 UNIX, the tm_gmtoff field in the tm data structure specifies the seconds east of Greenwich (UTC). For example, -18000 means 5 hours west of Greenwich. The tm_zone field is a string that is an abbreviation for the current time zone (for example, EST, PDT, GMT).


C/C++ Structure Memberstm_gmtoff C/C++ Structure Memberstm_zone      

See also

Solution description

Modify your code.

If your application makes use of the tm_gmtoff and tm_zone structure fields, modify it to use the HP-UX timezone and tzname external variables. For example:

tm_gmtoff = -timezone
tm_zone   = tzname[tm_isdst]

Note: It is no longer possible to have different a tm data structure using different time zone information. Time zone information is global across a single process.

The TZ environment variable is also interpreted differently. Please review the impact statement on the tzset routine for more information.

See also

Problem summary

classifications source types OS release severity type
DA C, C++ any HP-UX 11i version critical changed
Printable version
Privacy statement Using this site means you accept its terms Feedback to DSPP
© 2007 Hewlett-Packard Development Company, L.P.