Searched refs:year (Results 1 - 25 of 50) sorted by relevance

12

/osnet-11/usr/src/cmd/perl/5.8.4/distrib/lib/
H A Dctime.pl36 local($sec, $min, $hour, $mday, $mon, $year, $wday, $yday, $isdst);
43 ($sec, $min, $hour, $mday, $mon, $year, $wday, $yday, $isdst) =
55 $year += 1900;
57 $DoW[$wday], $MoY[$mon], $mday, $hour, $min, $sec, $TZ, $year);
/osnet-11/usr/src/grub/grub2/include/grub/
H A Ddatetime.h27 grub_uint16_t year; member in struct:grub_datetime
80 if (datetime->year > 2038 || datetime->year < 1901)
92 y4 = (datetime->year - 1973) / 4;
93 if (datetime->year < 1973)
95 ay = datetime->year - 1973 - 4 * y4;
121 if ((datetime->year > 1980 && ret < 0)
122 || (datetime->year < 1960 && ret > 0))
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/lib/Time/
H A DLocal.t15 #year,mon,day,hour,min,sec
40 my($year, $mon, $mday, $hour, $min, $sec) = @$_;
41 $year -= 1900;
46 my $time = timelocal($sec,$min,$hour,$mday,$mon,$year);
55 $Y == $year
68 $time = timegm($sec,$min,$hour,$mday,$mon,$year);
76 $Y == $year
H A DLocal.pm56 my $year = $_[5] + 1900 - $month/10;
57 365*$year + $year/4 - $year/100 + $year/400 + ($month*306 + 5)/10 - $Epoc
72 my ($sec,$min,$hour,$mday,$month,$year) = @_;
74 if ($year >= 1000) {
75 $year -= 1900;
77 elsif ($year < 100 and $year >
[all...]
H A Dgmtime.t43 print "not " unless $gmtime->year == $gmtime[5];
H A Dlocaltime.t43 print "not " unless $localtime->year == $localtime[5];
H A Dtm.pm8 map { $_ => '$' } qw{ sec min hour mday mon year wday yday isdst }
27 min, hour, mday, mon, year, wday, yday, and isdst.
/osnet-11/usr/src/grub/grub2/grub-core/normal/
H A Ddatetime.c40 y = datetime->year - a;
74 datetime->year = 1973 + 4 * div;
78 of the year elapsed but year isn't finished yet */
81 datetime->year += 3;
86 datetime->year += nix / SECPERYEAR;
90 && nix >= ((grub_int32_t) (i==1 && datetime->year % 4 == 0
92 nix -= ((grub_int32_t) (i==1 && datetime->year % 4 == 0
/osnet-11/usr/src/grub/grub2/grub-core/lib/efi/
H A Ddatetime.c43 datetime->year = efi_time.year;
67 efi_time.year = datetime->year;
/osnet-11/usr/src/lib/libc/port/gen/
H A Dctime.c43 * year-1970
45 * day of the year
117 int year = t->tm_year + 1900; local
137 if (year < 0 || year >= 10000) {
142 cp = ct_numb(cp, year / 100, '0');
144 (void) ct_numb(cp, year, '0');
/osnet-11/usr/src/grub/grub2/grub-core/lib/ieee1275/
H A Ddatetime.c62 grub_ieee1275_cell_t year; member in struct:get_time_args
95 datetime->year = args.year;
113 grub_ieee1275_cell_t year; member in struct:set_time_args
140 args.year = datetime->year;
/osnet-11/usr/src/lib/gss_mechs/mech_krb5/support/
H A Dgmt_mktime.c37 #define hasleapday(year) (year%400?(year%100?(year%4?0:1):0):1)
72 accum *= 365; /* 365 days/normal year */
79 /* add in leap day for this year */
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/t/op/
H A Dtime.t44 ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime($beg);
48 ok($sec != $xsec && $mday && $year, 'localtime() list context');
59 ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = gmtime($beg);
62 ok($sec != $xsec && $mday && $year, 'gmtime() list context');
66 'gmtime() and localtime() agree what day of year');
/osnet-11/usr/src/lib/libprtdiag/common/
H A Ddisplay_funcs.c92 int sec, min, hour, day, month, year; local
94 year = BCD_TO_BYTE(mostek[6]) + YRBASE;
95 month = BCD_TO_BYTE(mostek[5] & 0x1f) + ((year & 3) << 4);
101 utc = (year - 70); /* next 3 lines: utc = 365y + y/4 */
103 utc += (utc << 2) + ((year - 69) >> 2);
/osnet-11/usr/src/grub/grub2/docs/
H A Dmdate-sh136 # $4 = year or time
144 # $3 = year or time
169 # the time of day or the year.
171 *:*) set `date`; eval year=\$$#
186 # For the first six month of the year the time notation can also
187 # be used for files modified in the last year.
190 year=`expr $year - 1`
192 *) year=$3;;
196 echo $day $month $year
[all...]
/osnet-11/usr/src/grub/grub-0.97/docs/
H A Dmdate-sh115 # Get the month. Next argument is day, followed by the year or time.
134 # the time of day or the year.
136 *:*) set `date`; eval year=\$$#
151 # For the first six month of the year the time notation can also
152 # be used for files modified in the last year.
155 year=`expr $year - 1`
157 *) year=$3;;
161 echo $day $month $year
/osnet-11/usr/src/grub/grub2/build-aux/
H A Dmdate-sh132 # $4 = year or time
140 # $3 = year or time
165 # the time of day or the year.
167 *:*) set `date`; eval year=\$$#
182 # For the first six month of the year the time notation can also
183 # be used for files modified in the last year.
186 year=`expr $year - 1`
188 *) year=$3;;
192 echo $day $month $year
[all...]
/osnet-11/usr/src/tools/onbld/Checks/
H A DCopyright.py29 # the current year.
101 # group 1 = optional initial year
102 # group 2 = current year
103 # group 3 = comma after current year
113 year = time.strftime('%Y')
114 if match.group(2) != year:
115 err(output, "wrong copyright year %s, should "
117 (match.group(2), year), filename, lineno)
121 err(output, "need comma after current year",
/osnet-11/usr/src/grub/grub2/grub-core/kern/emu/
H A Dtime.c31 datetime->year = mytm->tm_year + 1900;
/osnet-11/usr/src/grub/grub2/grub-core/lib/
H A Dcmos_datetime.c50 datetime->year = value;
51 datetime->year += (value < 80) ? 2000 : 1900;
123 value = ((datetime->year >= 2000) ? datetime->year - 2000 :
124 datetime->year - 1900);
/osnet-11/usr/src/grub/grub2/grub-core/lib/arc/
H A Ddatetime.c34 datetime->year = dt->y;
/osnet-11/usr/src/grub/grub2/grub-core/fs/
H A Diso9660.c61 grub_uint8_t year; member in struct:grub_iso9660_date2
87 grub_uint8_t year[4]; member in struct:grub_iso9660_date
184 if (! i->year[0] && ! i->year[1]
185 && ! i->year[2] && ! i->year[3]
193 datetime.year = (i->year[0] - '0') * 1000 + (i->year[1] - '0') * 100
194 + (i->year[
[all...]
/osnet-11/usr/src/grub/grub2/grub-core/commands/
H A Ddate.c50 datetime.year, datetime.month, datetime.day,
112 datetime.year = value[0];
141 N_("[[year-]month-day] [hour:minute[:second]]"),
/osnet-11/usr/src/lib/libast/common/tm/
H A Dtmxscan.c41 int year; member in struct:__anon1190
55 #define CLEAR(s) (s.year=s.mon=s.week=s.weektype=s.yday=s.mday=s.wday=s.hour=s.min=s.sec=s.meridian=(-1),s.nsec=1000000000L,s.zone=TM_LOCALZONE)
80 if (set->year >= 0)
81 tm->tm_year = set->year;
84 if (set->year < 0 && set->mon < tm->tm_mon)
251 set.year = (n - 19) * 100 + tm->tm_year % 100;
366 set.year = n;
370 set.year = n - 1900;
/osnet-11/usr/src/grub/grub2/grub-core/hook/
H A Ddatehook.c60 n = datetime.year;

Completed in 53 milliseconds

12