- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- exact command to set date/time
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
09-17-2007 09:38 PM
09-17-2007 09:38 PM
May anyone plz give the exact command to set the date + time for instance: actual date (18 september) and time = 19H 30min 15 sec PM.
thanks in advance.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2007 09:39 PM
09-17-2007 09:39 PM
Re: exact command to set date/time
Mark,
you can use
#set_parms date_time
WK
please assign points
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2007 09:48 PM
09-17-2007 09:48 PM
Re: exact command to set date/time
BR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2007 09:53 PM
09-17-2007 09:53 PM
Solutiondate [-u] [mmddhhmm[[cc]yy]]
Set the HP-UX system clock to the date and time specified. You require the superuser privilege.
If you include the -u option, the specified date and time is assumed to be in Coordinated Universal Time (UTC).
The numeric argument is interpreted left to right in two-digit pairs as follows:
mm Month number [01-12].
dd Day number in the month [01-31].
hh Hour number (24-hour system) [00-23].
mm Minute number [00-59].
cc Century minus one [19-20].
yy Last two digits of the year number [70-99, 00- 7 (1970-1999, 2000-2037)]. If omitted, the current year is used.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2007 09:59 PM
09-17-2007 09:59 PM
Re: exact command to set date/time
I tried this but I am sure I am miss understanding the arguments: Can tell me the exact syntax please for setting:
actual date (18 september) and time = 19H 30min 15 sec PM.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2007 10:09 PM
09-17-2007 10:09 PM
Re: exact command to set date/time
'date 09181930'
seconds are not possible - see 'man date'
Volkmar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2007 10:13 PM
09-17-2007 10:13 PM
Re: exact command to set date/time
> Can tell me the exact syntax please for setting: actual date (18 september) and time = 19H 30min 15 sec PM.
There is NO seconds field to the argument. The manpages for 'date' is quite clear:
date [-u] [mmddhhmm[[cc]yy]]
Assuming what you provided was your localtime:
# date 09181930
The optional switch '-u' means UTC (GMT); The optional century (20) and year (07) need not be given.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2007 10:14 PM
09-17-2007 10:14 PM
Re: exact command to set date/time
Is your problem the seconds as Volkmar mentioned?
Otherwise you need to explain why you can't understand what Pete said.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2007 10:19 PM
09-17-2007 10:19 PM
Re: exact command to set date/time
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2007 10:24 PM
09-17-2007 10:24 PM
Re: exact command to set date/time
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2007 01:08 PM
09-18-2007 01:08 PM
Re: exact command to set date/time
sleep 45; date 09181931