note换行

xiaoxiao2021-02-28  60

Observe the following remarks when the current day-of-week is the same as the day-of-week used in the date/time string. The current day-of-week could have been (re-)calculated by non-relative parts of the date/time string however. 1. “dayname” does not advance to another day. (Example: “Wed July 23rd, 2008” means “2008-07-23”). 2. “number dayname” does not advance to another day. (Example: “1 wednesday july 23rd, 2008” means “2008-07-23”). 3. “number week dayname” will first add the number of weeks, but does not advance to another day. In this case “number week” and “dayname” are two distinct blocks. (Example: “+1 week wednesday july 23rd, 2008” means “2008-07-30”). 4. “ordinal dayname” does advance to another day. (Example “first wednesday july 23rd, 2008” means “2008-07-30”). 5. “number week ordinal dayname” will first add the number of weeks, and then advances to another day. In this case “number week” and “ordinal dayname” are two distinct blocks. (Example: “+1 week first wednesday july 23rd, 2008” means “2008-08-06”). 6. “ordinal dayname ‘of’ ” does not advance to another day. (Example: “first wednesday of july 23rd, 2008” means “2008-07-02” because the specific phrase with ‘of’ resets the day-of-month to ‘1’ and the ‘23rd’ is ignored here). Also observe that the “of” in “ordinal space dayname space ‘of’ ” and “‘last’ space dayname space ‘of’ ” does something special. 7. It sets the day-of-month to 1. 8. “ordinal dayname ‘of’ ” does not advance to another day. (Example: “first tuesday of july 2008” means “2008-07-01”). 9. “ordinal dayname ” does advance to another day. (Example: “first tuesday july 2008” means “2008-07-08”, see also point 4 in the list above). 10. “‘last’ dayname ‘of’ ” takes the last dayname of the current month. (Example: “last wed of july 2008” means “2008-07-30”) 11. “‘last’ dayname” takes the last dayname from the current day. (Example: “last wed july 2008” means “2008-06-25”; “july 2008” first sets the current date to “2008-07-01” and then “last wed” moves to the previous Wednesday which is “2008-06-25”).

转载请注明原文地址: https://www.6miu.com/read-2626237.html

最新回复(0)