- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Change Date format in HPUX Server
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
Discussions
Discussions
Forums
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
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
тАО03-01-2011 06:40 PM
тАО03-01-2011 06:40 PM
Change Date format in HPUX Server
- Tags:
- date
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-01-2011 07:51 PM
тАО03-01-2011 07:51 PM
Re: Change Date format in HPUX Server
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-01-2011 09:44 PM
тАО03-01-2011 09:44 PM
Re: Change Date format in HPUX Server
date [-u] [mmddhhmm[[cc]yy]]
date -u 032912202008
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-37 (1970-1999, 2000-2037)]. If omitted, the current year is used.
Thanks
Manix
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-01-2011 10:56 PM
тАО03-01-2011 10:56 PM
Re: Change Date format in HPUX Server
One simple solution may be put into profile of specific user ;
alias date='date "+%d/%m/%Y"'
if you want put it back;
unalias date
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-02-2011 12:46 AM
тАО03-02-2011 12:46 AM
Re: Change Date format in HPUX Server
What locale are you in? Perhaps if you select the right one, you get what you want.
$ TZ=UTC0 LANG=en_GB.utf8 date
Wed. 02 Mar, 2011 08:37:16 AM
You need to modify this part of a locale:
$ locale -k d_fmt
d_fmt="%m/%d/%y"
These locales:
pt_PT.utf8:
pt_BR.iso88591:
pt_BR.iso885915:
pt_BR.utf8:
pt_PT.iso88591:
pt_PT.iso885915@euro:
pt_PT.roman8:
d_fmt="%d/%m/%Y"
- Tags:
- locale