non-critical impact:
getdate - field descriptor differences (NcWn197)
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. Identifiers
 getdate |
|
|
|
|
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 |
|