Home
last modified time | relevance | path

Searched refs:day (Results 1 – 25 of 667) sorted by relevance

12345678910>>...27

/netbsd-src/external/public-domain/tz/dist/
H A Dleapseconds.awk201 quadcentury, century, quadyear, year, month, day)
208 day = epoch_days + int(sstamp / (24 * 60 * 60))
222 quadcentury = int(day / ss_quadcentury_days)
223 day -= quadcentury * ss_quadcentury_days
224 ss_wday = (day + 3) % 7
225 century = int(day / ss_century_days)
227 day -= century * ss_century_days
228 quadyear = int(day / ss_quadyear_days)
229 day -= quadyear * ss_quadyear_days
230 year = int(day / ss_year_days)
[all …]
/netbsd-src/external/bsd/flex/dist/examples/manual/
H A Ddates.lex9 char month[20],dow[20],day[20],year[20]; variable
15 mon (mon(day)?)
19 fri (fri(day)?)
21 sun (sun(day)?)
61 <LONG>{nday}{day_ext} strcpy(day,yytext); BEGIN(DAY_FIRST);
63 <DAY>{nday}{day_ext} strcpy(day,yytext); BEGIN(LONG);
68 printf(" Day : %s \n",day);
72 strcpy(day,"");
78 <SHORT>{nday} strcpy(day,yytext); BEGIN(YEAR_LAST);
86 <YFMONTH>{nday} strcpy(day,yytext); BEGIN(SHORT);
[all …]
/netbsd-src/usr.bin/calendar/calendars/
H A Dcalendar.judaic2 03/13* Fast of Esther (Battle of Purim; 1 day before Purim; fast day)
8 04/20* Pesach (Last Day of Passover; 8th day of Pesach; sabbatical)
15 fast day)
16 08/02* Fast of Tish'a B'Av (Babylon/Rome destroys Holy Temple; fast day)
20 09/25* Fast of Gedalya (Murder of Gedalya and subsequent Exile; 1 day
21 after Rosh Hashanah; fast day)
23 sabbatical, fast day)
26 10/13* Hoshanah Rabba (7th day of Sukkot)
27 10/14* Shmini Atzeret (8th Day of Gathering; 1 day afte
[all...]
/netbsd-src/crypto/external/bsd/openssl.old/dist/test/
H A Dasn1_time_test.c116 int day, sec; in test_table() local
135 if (!TEST_true(ASN1_TIME_diff(&day, &sec, &atime, &atime))) { in test_table()
139 if (!TEST_int_eq(day, 0) || !TEST_int_eq(sec, 0)) { in test_table()
144 if (!TEST_true(ASN1_TIME_diff(&day, &sec, &gtime, &atime))) { in test_table()
147 } else if (!((td->cmp_result == 0 && TEST_true((day == 0 && sec == 0))) || in test_table()
148 (td->cmp_result == -1 && TEST_true((day < 0 || sec < 0))) || in test_table()
149 (td->cmp_result == 1 && TEST_true((day > 0 || sec > 0))))) { in test_table()
197 day = sec = 0; in test_table()
198 …if (!TEST_true(ASN1_TIME_diff(&day, &sec, ptime, &atime)) || !TEST_int_eq(day, 0) || !TEST_int_eq(… in test_table()
199 …("ASN1_TIME_diff(day=%d, sec=%d, %s) after ASN1_TIME_set_string_gmt() failed", day, sec, td->data); in test_table()
[all …]
H A Dtime_offset_test.c72 int day, sec; in test_offset() local
79 if (!TEST_true(ASN1_TIME_diff(&day, &sec, &the_asn1_time, &at))) { in test_offset()
83 if (day > 0) in test_offset()
85 else if (day < 0) in test_offset()
95 TEST_info("ASN1_TIME_diff() test failed for %s day=%d sec=%d\n", at.data, day, sec); in test_offset()
/netbsd-src/usr.bin/cal/
H A Dcal.c494 int day, dw, dm; in day_array() local
515 day = julian ? day_in_year(1, month, year) : 1; in day_array()
518 (julian ? (day == tm->tm_yday) : in day_array()
519 (month == tm->tm_mon && day == tm->tm_mday))) in day_array()
520 days[dw++] = SPACE - day++; in day_array()
522 days[dw++] = day++; in day_array()
531 day_in_year(int day, int month, int year) in day_in_year() argument
537 day += days_in_month[leap][i]; in day_in_year()
538 return (day); in day_in_year()
548 day_in_week(int day, int month, int year) in day_in_week() argument
[all …]
H A DREADME2 principles. The algorithm for calculating the day of week from any
10 the day of week for any date. The algorithm for a zero based day of week:
15 add the day number within the year
18 if the day in question occurs before the gregorian reformation
21 if the day in question occurs during the reformation (3 sep 1752
24 this program never tries to find day of week for any day
41 Once we have the day in year for the first of the month in question, the
/netbsd-src/sys/arch/mvme68k/stand/libsa/
H A Dchiptotime.c21 chiptotime(int sec, int min, int hour, int day, int mon, int year) in chiptotime() argument
28 day = bcdtobin(day); in chiptotime()
35 if (year < 70 || mon < 1 || mon > 12 || day < 1 || day > 31) in chiptotime()
40 days += dayyr[mon - 1] + day - 1; in chiptotime()
H A Dclock.c24 chiptotime(int sec, int min, int hour, int day, int mon, int year) in chiptotime() argument
31 day = bcdtobin(day); in chiptotime()
38 if (year < 70 || mon < 1 || mon > 12 || day < 1 || day > 31) in chiptotime()
43 days += dayyr[mon - 1] + day - 1; in chiptotime()
/netbsd-src/crypto/external/bsd/openssl/dist/test/
H A Dasn1_time_test.c116 int day, sec; in test_table() local
135 if (!TEST_true(ASN1_TIME_diff(&day, &sec, &atime, &atime))) { in test_table()
139 if (!TEST_int_eq(day, 0) || !TEST_int_eq(sec, 0)) { in test_table()
144 if (!TEST_true(ASN1_TIME_diff(&day, &sec, &gtime, &atime))) { in test_table()
147 } else if (!((td->cmp_result == 0 && TEST_true((day == 0 && sec == 0))) || in test_table()
148 (td->cmp_result == -1 && TEST_true((day < 0 || sec < 0))) || in test_table()
149 (td->cmp_result == 1 && TEST_true((day > 0 || sec > 0))))) { in test_table()
197 day = sec = 0; in test_table()
198 …if (!TEST_true(ASN1_TIME_diff(&day, &sec, ptime, &atime)) || !TEST_int_eq(day, 0) || !TEST_int_eq(… in test_table()
199 …("ASN1_TIME_diff(day=%d, sec=%d, %s) after ASN1_TIME_set_string_gmt() failed", day, sec, td->data); in test_table()
[all …]
H A Dtime_offset_test.c72 int day, sec; in test_offset() local
79 if (!TEST_true(ASN1_TIME_diff(&day, &sec, &the_asn1_time, &at))) { in test_offset()
83 if (day > 0) in test_offset()
85 else if (day < 0) in test_offset()
95 TEST_info("ASN1_TIME_diff() test failed for %s day=%d sec=%d\n", at.data, day, sec); in test_offset()
/netbsd-src/sys/arch/mvmeppc/stand/libsa/
H A Dclock.c27 chiptotime(int sec, int min, int hour, int day, int mon, int year) in chiptotime() argument
34 day = bcdtobin(day); in chiptotime()
41 if (year < 70 || mon < 1 || mon > 12 || day < 1 || day > 31) in chiptotime()
46 days += dayyr[mon - 1] + day - 1; in chiptotime()
/netbsd-src/usr.bin/calendar/
H A Dcalendar.c272 int day; in isnow() local
286 day = v1; in isnow()
295 if ((day = getfield(endp, &endp, &flags)) == 0) in isnow()
296 day = 1; in isnow()
300 day = v1; in isnow()
306 day = v2 ? v2 : 1; in isnow()
318 if (flags & F_WILDMONTH && flags & F_ISDAY && day == tp->tm_mday) in isnow()
321 if (flags & F_WILDMONTH && flags & F_ISDOW && day == tp->tm_wday + 1) in isnow()
328 day == tp->tm_wday + 1) in isnow()
332 day = tp->tm_mday + (((day - 1) - tp->tm_wday + 7) % 7); in isnow()
[all …]
/netbsd-src/sys/arch/x68k/stand/libsa/
H A Dclock.c48 int sec, min, hour, day, mon, year; in getsecs() local
55 day = (val & 0x000000ff); in getsecs()
63 if (mon < 1 || mon > 12 || day < 1 || day > 31) in getsecs()
71 days += yday[mon - 1] + day - 1; in getsecs()
/netbsd-src/external/bsd/ntp/dist/util/
H A Dtg.c265 int minute, hour, day, year; in main() local
313 sscanf(optarg, "%2d%3d%2d%2d", &year, &day, in main()
358 day = tm->tm_yday + 1; in main()
378 year, day, hour, minute, second, tone); in main()
380 year / 10, day, hour, minute, year % 10); in main()
395 0, year, day, hour, minute, second); in main()
420 day++; in main()
426 if (day >= (year & 0x3 ? 366 : 367)) { in main()
432 day = 1; in main()
438 day, hour, minute, year % 10); in main()
[all …]
/netbsd-src/external/gpl2/xcvs/dist/doc/
H A Dgetdate.texi53 * Time of day items:: 9:20pm.
78 @item time of day items
80 @item day of the week items
93 most useful for specifying day of the week items or relative items (see
153 A @dfn{calendar date item} specifies a day of the year. It is
184 @samp{@var{year}-@var{month}-@var{day}} is allowed, where @var{year} is
186 @var{day} is a number between 01 and 31. A leading zero must be present
190 @samp{@var{month}/@var{day}/@var{year}}, popular in the United States,
191 is accepted. Also @samp{@var{month}/@var{day}}, omitting the year.
206 @var{day} @var{month} @var{year}
[all …]
H A Dgetdate-cvs.texi60 * Time of day items:: 9:20pm.
85 @item time of day items
87 @item day of the week items
100 most useful for specifying day of the week items or relative items (see
160 A @dfn{calendar date item} specifies a day of the year. It is
191 @samp{@var{year}-@var{month}-@var{day}} is allowed, where @var{year} is
193 @var{day} is a number between 01 and 31. A leading zero must be present
197 @samp{@var{month}/@var{day}/@var{year}}, popular in the United States,
198 is accepted. Also @samp{@var{month}/@var{day}}, omitting the year.
213 @var{day} @var{month} @var{year}
[all …]
/netbsd-src/external/gpl3/gcc/dist/libstdc++-v3/include/std/
H A Dchrono106 class day;
186 class day
192 day() = default;
195 day(unsigned __d) noexcept
199 constexpr day&
206 constexpr day
214 constexpr day&
221 constexpr day
229 constexpr day&
236 constexpr day&
[all …]
/netbsd-src/sys/arch/hp300/stand/common/
H A Dclock.c99 int year, month, day, hour, min, sec; in clock_to_gmt() local
108 day = mc_read(MC_DOM); in clock_to_gmt()
122 day = bbc_to_decimal(8, 7); in clock_to_gmt()
132 year, month, day, hour, min, sec); in clock_to_gmt()
136 range_test(day, 1, 31); in clock_to_gmt()
149 tmp += (day - 1); in clock_to_gmt()
/netbsd-src/tests/usr.bin/xlint/lint1/
H A Dmsg_155.c68 } day = MONDAY; in type_name_of_enum() local
71 sink(day); in type_name_of_enum()
74 sink(day + 0); in type_name_of_enum()
77 sink(0 + day); in type_name_of_enum()
/netbsd-src/lib/libc/citrus/
H A Dcitrus_lc_time.c84 free(__UNCONST(data->day[i])); in _citrus_LC_TIME_uninit()
113 { _CITRUS_LC_TIME_SYM_DAY_1, OFFSET(day[DAY_IDX(DAY_1)] ) },
114 { _CITRUS_LC_TIME_SYM_DAY_2, OFFSET(day[DAY_IDX(DAY_2)] ) },
115 { _CITRUS_LC_TIME_SYM_DAY_3, OFFSET(day[DAY_IDX(DAY_3)] ) },
116 { _CITRUS_LC_TIME_SYM_DAY_4, OFFSET(day[DAY_IDX(DAY_4)] ) },
117 { _CITRUS_LC_TIME_SYM_DAY_5, OFFSET(day[DAY_IDX(DAY_5)] ) },
118 { _CITRUS_LC_TIME_SYM_DAY_6, OFFSET(day[DAY_IDX(DAY_6)] ) },
119 { _CITRUS_LC_TIME_SYM_DAY_7, OFFSET(day[DAY_IDX(DAY_7)] ) },
/netbsd-src/external/bsd/ntp/dist/scripts/stats/
H A DREADME.timecodes13 T time of day
14 D day of year or month/day
40 ddd = day of year
61 ddd = day of year
62 hh:mm:ss.fff = hours, minutes, seconds, milliseconds of day
101 dd/mm = day, month
106 a day.
119 d = features indicator (@ = month/day display enabled)
132 hh:mm:ss.fff = hours, minutes, seconds, milliseconds of day
136 dd/mm/ddd = day of month, month of year, day of year
/netbsd-src/lib/libc/locale/
H A Dnl_langinfo.c114 [ DAY_1 ] = offsetofu16(_TimeLocale, day[0]),
115 [ DAY_2 ] = offsetofu16(_TimeLocale, day[1]),
116 [ DAY_3 ] = offsetofu16(_TimeLocale, day[2]),
117 [ DAY_4 ] = offsetofu16(_TimeLocale, day[3]),
118 [ DAY_5 ] = offsetofu16(_TimeLocale, day[4]),
119 [ DAY_6 ] = offsetofu16(_TimeLocale, day[5]),
120 [ DAY_7 ] = offsetofu16(_TimeLocale, day[6]),
/netbsd-src/external/apache2/llvm/dist/libcxx/include/
H A Dchrono331 // 25.8.3, class day // C++20
333 class day;
334 constexpr bool operator==(const day& x, const day& y) noexcept;
335 constexpr bool operator!=(const day& x, const day& y) noexcept;
336 constexpr bool operator< (const day& x, const day& y) noexcept;
337 constexpr bool operator> (const day& x, const day& y) noexcept;
338 constexpr bool operator<=(const day& x, const day& y) noexcept;
339 constexpr bool operator>=(const day& x, const day& y) noexcept;
340 constexpr day operator+(const day& x, const days& y) noexcept;
341 constexpr day operator+(const days& x, const day& y) noexcept;
[all …]
/netbsd-src/external/gpl3/gcc/dist/libphobos/src/std/datetime/
H A Ddate.d764 @property ubyte day() const @safe pure nothrow @nogc in day() function
766 return _date.day; in day()
772 assert(DateTime(Date(1999, 7, 6), TimeOfDay(9, 7, 5)).day == 6);
773 assert(DateTime(Date(2010, 10, 4), TimeOfDay(0, 0, 30)).day == 4);
774 assert(DateTime(Date(-7, 4, 5), TimeOfDay(7, 45, 2)).day == 5);
784 assert(dateTime.day == expected, format("Value given: %s", dateTime)); in test()
792 test(DateTime(Date(year, md.month, md.day), tod), md.day);
798 assert(cdt.day == 6);
799 assert(idt.day == 6);
807 day = The day of the month to set this $(LREF DateTime)'s day to.
[all …]

12345678910>>...27