- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Setting Date Format
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
тАО05-08-2001 03:14 PM
тАО05-08-2001 03:14 PM
Setting Date Format
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-08-2001 04:58 PM
тАО05-08-2001 04:58 PM
Re: Setting Date Format
Your question isn't very specific so I'm not sure if you are trying to do this a a system-wide sense or a local sense. Here goes:
If all you want is to format a date command,
date '+%d/%m/%y' will do it.
If you are looking for a more general answer then you will need to set and export the LANG variable. (man date, locale to get started)
try this as an example:
do a date command and note the format
now export LANG="en_GB.roman8"
and date again.
Note: Application programs are not guaranteed to properly use the locale; they should but again no guaratee's.
Hope this gets you started, Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-09-2001 02:02 AM
тАО05-09-2001 02:02 AM
Re: Setting Date Format
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-09-2001 07:01 AM
тАО05-09-2001 07:01 AM
Re: Setting Date Format
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-09-2001 07:08 AM
тАО05-09-2001 07:08 AM
Re: Setting Date Format
You can simply do an unset LANG and the default behavior will kick in.
Bear in mind, if you set LANG and export, that only this shell and its child processes.
This is not a system-wide change; anything you do is safe.
Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-09-2001 07:10 AM
тАО05-09-2001 07:10 AM
Re: Setting Date Format
To reset LANG to its default, do:
# export LANG=POSIX
To see other options, do:
# locale -a
...JRF...