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

non-critical impact:

getdate - field descriptor differences (NcWn197)

DA Impacts

Problem description

The getdate function has field descriptor differences between Tru64 UNIX and HP-UX.

The %C field descriptor of the getdate function matches the century as a decimal number in the range from 00 to 99. This field descriptor exists on Tru64 UNIX but not on HP-UX.

The getdate function converts user-defined date and time specifications pointed to by a string into a tm structure. The %Z field descriptor specifies a time zone name or, if no time zone exists, no characters.

On HP-UX, the TZ environment variable must be set for %Z to work. On Tru64 UNIX, the default time zone information in /etc/zoneinfo/localtime is used when the TZ environment variable is not set.


C/C++ Functionsgetdate        

See also

Solution description

Review your application code and the applicable manpages.

Consider modifying your code to use %Y to match the full four-digit years instead of %C (century only); %C is not available in getdate on HP-UX

If your application code uses the %Z field descriptor, you must make sure that the TZ environment variable is properly set up or the time zone information may not be read correctly.

See also

Problem summary

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