|
|
ru.unix- RU.UNIX ---------------------------------------------------------------------- From : Sergue E. Leontiev 2:5020/400 05 Dec 2003 00:16:22 To : Peter Tveritin Subject : Re: не могу побороть /bin/date... --------------------------------------------------------------------------------
Здравствуйте, Peter!
Вы писали к Alexander Timoshenko от Sun, 30 Nov 2003 17:42:38 +0000 (UTC):
PT> а во все остальные дни кроме воскресенья _прошлую_ а не _текущую_
PT> неделю. Мне надо чтобы и в воскресенье отдавало прошлую.
The Open Group Base Specifications Issue 6
IEEE Std 1003.1, 2003 Edition
Copyright ь 2001-2003 The IEEE and The Open Group, All Rights reserved
NAME
date - write the date and time
SYNOPSIS
date [-u] [+format]
...
Conversion Specifications
%a Locale's abbreviated weekday name.
...
%u Weekday as a decimal number [1,7] (1=Monday).
%U Week of the year (Sunday as the first day of the week) as a decimal
number [00,53]. All days in a new year preceding the first Sunday shall be
considered to be in week 0.
%V Week of the year (Monday as the first day of the week) as a decimal
number [01,53]. If the week containing January 1 has four or more days in
the new year, then it shall be considered week 1; otherwise, it shall be the
last week of the previous year, and the next week shall be week 1.
%w Weekday as a decimal number [0,6] (0=Sunday).
%W Week of the year (Monday as the first day of the week) as a decimal
number [00,53]. All days in a new year preceding the first Monday shall be
considered to be in week 0.
--
Успехов, Сергей Леонтьев. E-mail: leo@sai.msu.ru, http://www.cryptopro.ru
--- ifmail v.2.15dev5.1
* Origin: MTU-Intel ISP (2:5020/400)
Вернуться к списку тем, сортированных по: возрастание даты уменьшение даты тема автор
Архивное /ru.unix/9104dd9504f0.html, оценка из 5, голосов 10
|