Searched refs:month (Results 1 - 25 of 68) sorted by relevance

123

/openbsd-current/gnu/llvm/libcxx/include/__chrono/
H A Dmonth.h28 class month { class in namespace:chrono
32 _LIBCPP_HIDE_FROM_ABI month() = default;
33 _LIBCPP_HIDE_FROM_ABI explicit inline constexpr month(unsigned __val) noexcept : __m_(static_cast<unsigned char>(__val)) {}
34 _LIBCPP_HIDE_FROM_ABI inline constexpr month& operator++() noexcept { ++__m_; return *this; }
35 _LIBCPP_HIDE_FROM_ABI inline constexpr month operator++(int) noexcept { month __tmp = *this; ++(*this); return __tmp; }
36 _LIBCPP_HIDE_FROM_ABI inline constexpr month& operator--() noexcept { --__m_; return *this; }
37 _LIBCPP_HIDE_FROM_ABI inline constexpr month operator--(int) noexcept { month __tmp = *this; --(*this); return __tmp; }
38 _LIBCPP_HIDE_FROM_ABI constexpr month
[all...]
H A Dmonthday.h15 #include <__chrono/month.h>
32 chrono::month __m_;
36 _LIBCPP_HIDE_FROM_ABI constexpr month_day(const chrono::month& __mval, const chrono::day& __dval) noexcept
38 _LIBCPP_HIDE_FROM_ABI inline constexpr chrono::month month() const noexcept { return __m_; }
60 { return __lhs.month() == __rhs.month() && __lhs.day() == __rhs.day(); }
63 if (auto __c = __lhs.month() <=> __rhs.month(); __c != 0)
69 month_day operator/(const month
[all...]
H A Dmonth_weekday.h13 #include <__chrono/month.h>
30 chrono::month __m_;
33 _LIBCPP_HIDE_FROM_ABI constexpr month_weekday(const chrono::month& __mval, const chrono::weekday_indexed& __wdival) noexcept
35 _LIBCPP_HIDE_FROM_ABI inline constexpr chrono::month month() const noexcept { return __m_; }
42 { return __lhs.month() == __rhs.month() && __lhs.weekday_indexed() == __rhs.weekday_indexed(); }
49 month_weekday operator/(const month& __lhs, const weekday_indexed& __rhs) noexcept
54 { return month_weekday{month(__lhs), __rhs}; }
57 month_weekday operator/(const weekday_indexed& __lhs, const month
[all...]
H A Dyear_month.h14 #include <__chrono/month.h>
32 chrono::month __m_;
35 _LIBCPP_HIDE_FROM_ABI constexpr year_month(const chrono::year& __yval, const chrono::month& __mval) noexcept
38 _LIBCPP_HIDE_FROM_ABI inline constexpr chrono::month month() const noexcept { return __m_; }
47 year_month operator/(const year& __y, const month& __m) noexcept { return year_month{__y, __m}; }
50 year_month operator/(const year& __y, int __m) noexcept { return year_month{__y, month(__m)}; }
54 { return __lhs.year() == __rhs.year() && __lhs.month() == __rhs.month(); }
59 return __lhs.month() <
[all...]
H A Dyear_month_weekday.h16 #include <__chrono/month.h>
39 chrono::month __m_;
43 _LIBCPP_HIDE_FROM_ABI constexpr year_month_weekday(const chrono::year& __yval, const chrono::month& __mval,
56 _LIBCPP_HIDE_FROM_ABI inline constexpr chrono::month month() const noexcept { return __m_; }
85 return year_month_weekday{__ymd.year(), __ymd.month(),
99 { return __lhs.year() == __rhs.year() && __lhs.month() == __rhs.month() && __lhs.weekday_indexed() == __rhs.weekday_indexed(); }
107 { return year_month_weekday{__lhs.year(), __lhs.month(), __rhs}; }
111 { return year_month_weekday{__lhs, __rhs.month(), __rh
[all...]
H A Dconvert_to_tm.h16 #include <__chrono/month.h>
59 __result.tm_mon = static_cast<unsigned>(__date.month()) - 1;
92 else if constexpr (same_as<_ChronoT, chrono::month>)
102 __result.tm_mon = static_cast<unsigned>(__value.month()) - 1;
104 __result.tm_mon = static_cast<unsigned>(__value.month()) - 1;
107 __result.tm_mon = static_cast<unsigned>(__value.month()) - 1;
110 __result.tm_mon = static_cast<unsigned>(__value.month()) - 1;
H A Dyear_month_day.h16 #include <__chrono/month.h>
42 chrono::month __m_;
47 const chrono::year& __yval, const chrono::month& __mval, const chrono::day& __dval) noexcept
61 _LIBCPP_HIDE_FROM_ABI inline constexpr chrono::month month() const noexcept { return __m_; }
88 return year_month_day{chrono::year{__yr + (__mth <= 2)}, chrono::month{__mth}, chrono::day{__dy}};
111 { return __lhs.year() == __rhs.year() && __lhs.month() == __rhs.month() && __lhs.day() == __rhs.day(); }
117 if (auto __c = __lhs.month() <=> __rhs.month(); __
[all...]
H A Dostream.h15 #include <__chrono/month.h>
121 operator<<(basic_ostream<_CharT, _Traits>& __os, const month& __m) {
124 _LIBCPP_STATICALLY_WIDEN(_CharT, "{} is not a valid month"),
167 return __os << std::format(__os.getloc(), _LIBCPP_STATICALLY_WIDEN(_CharT, "{:L}/{}"), __md.month(), __md.day());
173 return __os << std::format(__os.getloc(), _LIBCPP_STATICALLY_WIDEN(_CharT, "{:L}/last"), __mdl.month());
180 __os.getloc(), _LIBCPP_STATICALLY_WIDEN(_CharT, "{:L}/{:L}"), __mwd.month(), __mwd.weekday_indexed());
187 __os.getloc(), _LIBCPP_STATICALLY_WIDEN(_CharT, "{:L}/{:L}"), __mwdl.month(), __mwdl.weekday_last());
193 return __os << std::format(__os.getloc(), _LIBCPP_STATICALLY_WIDEN(_CharT, "{}/{:L}"), __ym.year(), __ym.month());
217 __ymwd.month(),
228 __ymwdl.month(),
[all...]
H A Dformatter.h18 #include <__chrono/month.h>
68 /// \pre When the (abbreviated) weekday or month name are used, the caller
297 else if constexpr (same_as<_Tp, chrono::month>)
333 else if constexpr (same_as<_Tp, chrono::month>)
369 else if constexpr (same_as<_Tp, chrono::month>)
405 else if constexpr (same_as<_Tp, chrono::month>)
416 return __value.month().ok();
418 return __value.month().ok();
420 return __value.month().ok();
422 return __value.month()
[all...]
/openbsd-current/sys/lib/libsa/
H A Dctime.c47 int ss, mm, hh, wday, month, year; local
63 for (month = 0; tt > monthcnt[month]; month++)
64 tt -= monthcnt[month];
66 if (month > 2 && isleap(year))
71 ((month < 0 || month >= 12)? "???": months[month]),
/openbsd-current/gnu/usr.bin/texinfo/doc/
H A Dmdate-sh76 # until we find a month. This cannot work with files whose owner is a
78 # will be owned by a user whose name is a month. So we first look at
85 # Find which argument is the month.
86 month=
88 until test $month
94 Jan) month=January; nummonth=1;;
95 Feb) month=February; nummonth=2;;
96 Mar) month=March; nummonth=3;;
97 Apr) month=April; nummonth=4;;
98 May) month
[all...]
/openbsd-current/gnu/usr.bin/gcc/gcc/testsuite/gcc.c-torture/execute/
H A D950628-1.c3 char hours, day, month; member in struct:__anon7011
13 now.month = 3;
28 if (f ().hours != 1 || f ().day != 2 || f ().month != 3 || f ().year != 4)
/openbsd-current/usr.bin/cal/
H A Dcal.c52 #define MAXDAYS 42 /* max slots in a month array */
150 int ch, month, year, yflag; local
193 month = 0;
196 month = parsemonth(*argv++);
197 if (!month)
198 errx(1, "Unable to parse month");
202 month = parsemonth(*argv);
203 if (!month)
219 month = local_time->tm_mon + 1;
225 if (month)
243 week(int day, int month, int year) argument
270 isoweek(int day, int month, int year) argument
299 monthly(int month, int year) argument
331 int col, *dp, i, month, row, which_cal; local
366 int col, *dp, i, month, row, which_cal, week_len, wn, firstday; local
424 day_array(int month, int year, int *days) argument
445 day_in_year(int day, int month, int year) argument
463 day_in_week(int day, int month, int year) argument
[all...]
/openbsd-current/share/zoneinfo/
H A Dleapseconds.awk164 # ss_month - month of the year (1-January to 12-December)
165 # ss_mday - day of the month (1-31)
175 # Days in month N, where March is month 0 and January month 10.
201 quadcentury, century, quadyear, year, month, day)
210 # Compute a year-month-day date with days of the month numbered
233 for (month = 0; month < 1
[all...]
/openbsd-current/usr.bin/calendar/
H A Dday.c59 /* 1-based month, 0-based days, cumulative */
78 static struct fixs nmonths[13]; /* short national month names */
235 adjust_calendar(int *day, int *month) argument
243 if (*day > (cumdays[*month + 1] - cumdays[*month])) {
244 *day -= (cumdays[*month + 1] - cumdays[*month]);
245 if (++*month > 12)
246 *month = 1;
258 * numeric month o
267 int day = 0, flags = 0, month = 0, v1, v2, i; local
671 variable_weekday(int *day, int month, int year) argument
[all...]
/openbsd-current/sys/arch/amd64/stand/libsa/
H A Dtime.c56 compute(int year, u_int8_t month, u_int8_t day, u_int8_t hour, argument
59 /* Number of days per month */
63 tt = (year - 1970) * 365 + monthcount[month] + day - 1;
66 for (month <= 2 ? year-- : 0; year >= 1970; year--)
/openbsd-current/sys/arch/i386/stand/libsa/
H A Dtime.c56 compute(int year, u_int8_t month, u_int8_t day, u_int8_t hour, argument
59 /* Number of days per month */
63 tt = (year - 1970) * 365 + monthcount[month] + day - 1;
66 for (month <= 2 ? year-- : 0; year >= 1970; year--)
/openbsd-current/lib/libcrypto/asn1/
H A Da_time_posix.c39 * Is a year/month/day combination valid, in the range from year 0000
43 is_valid_date(int64_t year, int64_t month, int64_t day) argument
46 if (day < 1 || month < 1 || year < 0 || year > 9999)
48 switch (month) {
105 posix_time_from_utc(int64_t year, int64_t month, int64_t day, int64_t hours, argument
110 if (!is_valid_date(year, month, day) ||
113 if (month <= 2)
119 day_of_year = (153 * (month > 2 ? month - 3 : month
[all...]
H A Da_time_tm.c162 is_valid_day(int year, int month, int day) argument
166 switch (month) {
201 int year, month, day, hour, min, sec, val; local
225 if (!cbs_get_two_digit_value(&copy, &month))
227 if (month < 1 || month > 12)
232 if (!is_valid_day(year, month, day))
262 out_tm->tm_mon = month - 1;
/openbsd-current/gnu/usr.bin/perl/cpan/Time-Piece/
H A DPiece.xs16 /* offset to bias by March (month 4) 1st between month/mday & year finding */
161 int month, mday, year, jday;
165 month = ptm->tm_mon;
167 /* allow given yday with no month & mday to dominate the result */
168 if (ptm->tm_yday >= 0 && mday <= 0 && month <= 0) {
169 month = 0;
176 if (month >= 2)
177 month+=2;
179 month
[all...]
/openbsd-current/gnu/usr.bin/perl/cpan/Time-Local/t/
H A DLocal.t122 month => $lt[4],
130 month => $mon,
150 month => $gt[4],
158 month => $mon,
426 'month > bounds' => [ 1995, 13, 1, 1, 1, 1 ],
431 'month < bounds' => [ 1995, -1, 1, 1, 1, 1 ],
/openbsd-current/gnu/usr.bin/binutils/include/nlm/
H A Dexternal.h66 unsigned char month[NLM_TARGET_LONG_SIZE]; local
/openbsd-current/gnu/usr.bin/binutils-2.17/include/nlm/
H A Dexternal.h66 unsigned char month[NLM_TARGET_LONG_SIZE]; local
/openbsd-current/usr.sbin/cron/
H A Dstructs.h32 bitstr_t bit_decl(month, MONTH_COUNT);
/openbsd-current/gnu/usr.bin/perl/cpan/Time-Local/lib/Time/
H A DLocal.pm91 my $month = ( $_[4] + 10 ) % 12;
92 my $year = $_[5] + 1900 - int( $month / 10 );
98 + int( ( ( $month * 306 ) + 5 ) / 10 ) ) - $Epoc;
113 my ( $sec, $min, $hour, $mday, $month, $year ) = @_;
128 Carp::croak("Month '$month' out of range 0..11")
129 if $month > 11
130 or $month < 0;
132 my $md = $MonthDays[$month];
134 if $month == 1 && _is_leap_year( $year + 1900 );
146 my $days = _daygm( undef, undef, undef, $mday, $month,
[all...]

Completed in 279 milliseconds

123