Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Obtaining timestamp 2

Status
Not open for further replies.

sandeepmur

Programmer
Dec 14, 2003
295
PT
Hi,

How can I obtain the current TIMESTAMP in HP-UX ? man data doesnt give any info on this..

thnx,
 
I recommend man timezone
Basically the 0 in PWT0PST means that your offset to GMT is 0 hours; but there is a daylight saving time in effect, which is somehow called PST (could this be 'Portugal Summer Time' ?? (and PWT the same with Winter?)
There is no case of worry if you always use the same method of getting your time.
The timestampe method has the additional advantage that you won't get double values even during that one hour in autumn when you switch back to winter time.
By the way, 'date -u' always gives GMT, in summer and in winter.
hope this helps
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top