bash - What Does A Letter Delimiter in a date String Do (Besides Delimit)? -
I am using bash
4.1. I am changing the date and time date fields by using a date string using date
. It appears that each letter specifies the different values (-5 to +18) that can be added at specified time. But keep in mind that there is a J
result in an error, either in the man
or information
pages, there can be no explanation for this behavior. Can anyone illuminate me?
$ date -d 2014-01-01A00: 00: 00 Tuesday December 31 1 9:00:00 CST 2013 $ date-d 2014-01-01000000: 00: 00 Tuesday December 31 20:00:00 CST 2013 $ Date-D 2014-01-01C 00: 00: 00 Tuesday December 31 21:00:00 CST 2013 $ Date-D 2014-01-01 D 00: 00: 00 Tuesday December 31 22:00:00 CST 2013 $ Date-D 2014-01-01 E 00: 00: 00 Tuesday December 31 23:00:00 CST 2013 $ Date-D 2014-01-01 F 00: 00: 00 Mercury January 1 00:00:00 CST 2014 date-d 2014-01-01G00: 00: 00 Mercury January 01 01:00:00 CST 2014 $ date-D 2014-01-01 H 00: 00: 00 Wed Jan 02 02: 00:00 CST 2014 $ Date-D 2014-01-01I00: 00: 00 Mercury Nov. 1 03:00:00 CST 2014 $ date-D 2014-01-01J00: 00: 00 Date: Invalid date `2014-01-01J00: 00: 00 '$ dated 01/01/2014 00: 00 : 00 Mercury January 1 04:00:00 CST 2014 Date $ -0 2014-01-01 L 00: 00: 00 Wed Jan 1 05:00:00 CST 2014 $ Date-D 2014-01-01M00: 00: 00 Wed Jan 1 06:00:00 CST 2014 $ date-d 2014-01-01 N 00: 00: 00 litigation December 31 17:00:00 CST 2013 $ date-D 2014-01- 01O00: 00: 00 Tuesday December 31 16:00:00 CST 2013 $ date-d 2014-01-01P00: 00: 00 Tuesday December 31 15:00:00 CST 2013 $ Date-D 2014-01-01Q00: 00: 00 Tuesday December 31 14:00 : 00 CST 2013 $ date-D 2014-01-0 1R 00: 00: 00 Sue December 31 13:00:00 CST 2013 $ Date-D 2014 -01-01 S 00: 00: 00 Tuesday December 31 12:00:00 CST 2013 $ Date-D 2014-01- 01 T 00: 00: 00 Tue Dec 31 11:00:00 CST 2013 $ Date- 2014-01-01U00: 00: 00 Tue Dec 31 10:00:00 CST 2013 $ Date-D 2014-01-01 v 00 : 00: 00 Tuesdays December 31, 00:00 CST 2013 $ Date-D 2014-01-01W00: 00: 00 Tuesday December 31 08:00:00 CST 2013 $ Date- d 2014-01-01X00: 00: 00 Mars December 31 07:00:00 CST 2013 $ date-d 2014-01-01 y00: 00: 00 Tuesday December 31 06: 00: 00 CST 2013 $ date -d 2014-01-01Z00: 00: 00 Tuesday December 31 18 : 00: 0 0 CST 2013
Look at the letters sorted according to their associated time: YXWVUTSRQPON Z ABCDEFGHIKLM
I highlighted jade
because it (in your example) Mercury on 1 January 00:00 GMT 2014. AM GMT, NY represents the time zone (in the west) from the time zone preceded (later). So you get GMT, 12 times in the east and 12 in the west, which makes 25. Jammu is just a letter which was left for some reason.
Comments
Post a Comment