Oracle Solaris System Administration (MOSC)

MOSC Banner

How to Change time format from 12Hr to 24 Hr

edited Mar 19, 2013 11:31PM in Oracle Solaris System Administration (MOSC) 9 commentsAnswered ✓
Hello All,

Can you anyone please guide me how do i change my date format in 24 hr from 12Hr.

Currently its showing time with AM/PM format but i want to mark it as in 24hr format. like 2:00 PM as 14:00.

I checked on server and found "t_fmt" parameter as "%l:%M:%S %p" whereas it should be as "%H:%M:%S %p".

Below are few details from server.


bash-3.00# date
Friday, March  8, 2013  3:33:41 PM GMT
bash-3.00# locale
LANG=en_US.ISO8859-1
LC_CTYPE=en_US.ISO8859-1
LC_NUMERIC=en_US.ISO8859-1
LC_TIME="en_US.ISO8859-1"

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center