%:z: Prints the time difference between your timezone and UTC, with a : between the hours and minutes.%z: Prints the time difference between your timezone and UTC.%S: Prints the seconds, 01, 02, 03 … 59, with a leading zero if required.%s: Prints the number of seconds since 00:00:00, the start of the Unix Epoch.%M: prints the minute, 01, 02, 03 … 59, with a leading zero if required.%I: Prints the hour using the 12-hour clock, 00, 01, 02 … 12, with a leading zero if required.On a Linux machine configured for the UK locale and set to GMT, it printed the time, using the 24-hour clock with no AM or PM indicator, as expected. Note that during testing this option behaved exactly as %r does, as shown below. %X: Prints the time according to your locale, using the 24-hour clock.%r: Prints the time according to your locale, using the 12-hour clock and an am or pm indicator.%R: Prints the hour and minutes as HH:MM with no seconds, using the 24-hour clock.%C: Prints the century without the year.%m: Prints the number of the month, with a leading zero if required 01, 02, 03 … 12.%B: prints the full name of the month, January, February, March, etc.%b or %h: Prints the name of the month abbreviated to Jan, Feb, Mar, etc.%W: Week number of the year, considering Monday as the first day of the week.%V: Prints the ISO week number of the year, considering Monday as the first day of the week.For example, the third week of the year, twentieth week of the year, etc. %U: Prints the week number of year, considering Sunday as the first day of the week.%j: Prints the day of the year, with up to two leading zeroes, if required.%e: Prints the day of the month, with a leading space (‘ 1’, ‘ 2’ … ‘ 9’) if required.%d: Prints the day of the month, with a leading zero (01, 02 … 09) if required.%w: Prints the number of the day of the week, where Sunday=0, Monday=1, Tuesday=2, etc.%u: Prints the number of the day of the week, where Monday=1, Tuesday=2, Wednesday=3, etc.%A: Prints the full name of the day, Monday Tuesday, Wednesday, etc.%a: Prints the name of the day, abbreviated to Mon, Tue, Wed, etc. ![]()
0 Comments
Leave a Reply. |