/macosx-10.10/ntp-92/ntpd/ |
H A D | check_y2k.c | 111 Days ( int Year ) /* return number of days since year "0" */ 127 static int year0 = 1900; /* sarting year for NTP time */ 128 static int yearend; /* ending year we test for NTP time. 130 **year in which NTP time overflows. 139 #define Error(year) if ( (year)>=2036 && LocalTime.tm_year < 110 ) \ 147 int year; local 156 year = ( sizeof( u_long ) > 4 ) /* save max span using year as temp */ 163 * fail ONLY beyond year 203 328 int year; member in struct:ParseTime [all...] |
/macosx-10.10/misc_cmds-33/calendar/ |
H A D | ostern.c | 37 /* return year day for Easter */ 47 easter(int year) /* 0 ... abcd, NOT since 1900 */ argument 56 G = year % 19; 57 C = year / 100; 60 J = (year + year/4 + I + 2 - C + C/4) % 7; 64 if (year % 400 == 0 || (year % 4 == 0 && year % 100 != 0)) 70 /* return year da 76 geteaster(char *s, int year) argument [all...] |
/macosx-10.10/emacs-93/emacs/lisp/calendar/ |
H A D | cal-persia.el | 46 (defun persian-calendar-leap-year-p (year) 47 "True if YEAR is a leap year on the Persian calendar." 48 (< (mod (* (mod (mod (if (<= 0 year) 49 ; No year zero 50 (+ year 2346) 51 (+ year 2347)) 58 (defun persian-calendar-last-day-of-month (month year) 62 ((or (< month 12) (persian-calendar-leap-year-p year)) 3 [all...] |
H A D | cal-html.el | 50 "Non-nil means print the day-of-the-year number in the monthly cal-html page." 54 (defcustom cal-html-year-index-cols 3 73 " TABLE.year { width: 100%; }\n" 167 (defun cal-html-monthpage-name (month year) 170 (format "%d-%.2d.html" year month)) 173 (defun cal-html-insert-link-monthpage (month year &optional change-dir) 176 the link points to a different year and so has a directory part." 181 (format "../%d/" year)) 182 (cal-html-monthpage-name month year)) 186 (defun cal-html-insert-link-yearpage (month year) [all...] |
H A D | cal-move.el | 36 (defvar displayed-year) 58 (year (extract-calendar-year cursor-date))) 59 (increment-calendar-month month year arg) 60 (let ((last (calendar-last-day-of-month month year))) 64 (let ((new-cursor-date (list month day year))) 66 (calendar-other-month month year)) 70 (defun calendar-forward-year (arg) 82 (defun calendar-backward-year (arg) 99 (year displaye [all...] |
H A D | cal-coptic.el | 52 (defun coptic-calendar-leap-year-p (year) 53 "True if YEAR is a leap year on the Coptic calendar." 54 (zerop (mod (1+ year) 4))) 56 (defun coptic-calendar-last-day-of-month (month year) 59 Nisi (Kebus) at the end of the year." 62 (if (coptic-calendar-leap-year-p year) 72 (year (extract-calendar-year dat [all...] |
H A D | cal-french.el | 90 (defun french-calendar-leap-year-p (year) 91 "True if YEAR is a leap year on the French Revolutionary calendar. 98 (or (memq year '(3 7 11));; Actual practice--based on equinoxes 99 (memq year '(15 20)) ;; Anticipated practice--based on equinoxes 100 (and (> year 20) ;; Romme's proposal--never adopted 101 (zerop (% year 4)) 102 (not (memq (% year 400) '(100 200 300))) 103 (not (zerop (% year 4000)))))) 105 (defun french-calendar-last-day-of-month (month year) [all...] |
/macosx-10.10/CPANInternal-159.1/DateTime-Format-ISO8601-0.07/t/ |
H A D | 03_base_datetime.t | 18 { year => 0 }, 19 { year => 1 }, 20 { year => 2500 }, 21 { year => 5000 }, 22 { year => 7500 }, 23 { year => 9998 }, 25 year => 9999, 44 { year => -2 }, 45 { year => -1 }, 47 year [all...] |
/macosx-10.10/ntp-92/libntp/ |
H A D | uglydate.c | 23 int year; local 34 year = 0; 40 year = tm->tm_year; 41 while (year >= 100) 42 year -= 100; 45 timep, year, tm->tm_yday, tm->tm_hour, tm->tm_min,
|
/macosx-10.10/pdisk-9/ |
H A D | pdisk.r | 44 VERSION, $$year, $$month, $$day, 45 $$year 54 $$year
|
/macosx-10.10/CPANInternal-159.1/Perl4-CoreLibs-0.003/lib/ |
H A D | ctime.pl | 35 local($sec, $min, $hour, $mday, $mon, $year, $wday, $yday, $isdst); 42 ($sec, $min, $hour, $mday, $mon, $year, $wday, $yday, $isdst) = 54 $year += 1900; 56 $DoW[$wday], $MoY[$mon], $mday, $hour, $min, $sec, $TZ, $year);
|
/macosx-10.10/ruby-106/ruby/lib/ |
H A D | time.rb | 48 # object that responds to #mon, #day and #year, such as Date, Time or DateTime. 52 # attr_reader :mon, :day, :year 54 # def initialize(mon, day, year) 55 # @mon, @day, @year = mon, day, year 70 # to handle the year component of the date. This is specifically designed for 72 # years prior to 70 as the year 2000+ you could write this: 74 # Time.parse("01-10-31") {|year| year + (year < 7 [all...] |
/macosx-10.10/CPANInternal-159.1/DateTime-Format-W3CDTF-0.06/t/ |
H A D | 02bugs.t | 22 year => 1977, month => 11, day => 11, hour => 1, minute => 12, 29 year => 1977, month => 4, day => 7, 36 year => 2003, month => 4, day => 7, hour => 2, 43 year => 2003, month => 12, day => 25, hour => 0, minute => 00, 50 year => 2009, month => 11, day => 25,, time_zone => 'Europe/London'
|
/macosx-10.10/ruby-106/ruby/test/date/ |
H A D | test_date_new.rb | 9 assert_equal([-4712, 1, 1], [d.year, d.mon, d.mday]) 10 assert_equal([-4712, 1, 1], [dt.year, dt.mon, dt.mday]) 19 assert_equal([-4712, 1, 1], [d.year, d.mon, d.mday]) 22 [d.year, d.mon, d.mday, d.hour, d.min, d.sec, d.offset]) 25 [d.year, d.mon, d.mday, d.hour, d.min, d.sec, d.offset]) 37 assert_equal([-4712, 1, 1], [d.year, d.mon, d.mday]) 38 assert_equal([-4712, 1, 1], [dt.year, dt.mon, dt.mday]) 47 assert_equal([-4712, 1, 1], [d.year, d.mon, d.mday]) 50 assert_equal([-4712, 1, 1], [d.year, d.mon, d.mday]) 54 [d.year, [all...] |
H A D | test_date_arith.rb | 14 assert_equal([2000, 2, 28], [d.year, d.mon, d.mday]) 16 assert_equal([2000, 2, 29], [d.year, d.mon, d.mday]) 18 assert_equal([2000, 3, 1], [d.year, d.mon, d.mday]) 22 [d.year, d.mon, d.mday, d.hour, d.min, d.sec]) 43 assert_equal([2000, 3, 2], [d.year, d.mon, d.mday]) 45 assert_equal([2000, 3, 1], [d.year, d.mon, d.mday]) 47 assert_equal([2000, 2, 29], [d.year, d.mon, d.mday]) 56 [d.year, d.mon, d.mday, d.hour, d.min, d.sec]) 94 assert_equal([2000, 12, 31], [d.year, d.mon, d.mday]) 96 assert_equal([2000, 12, 30], [d.year, [all...] |
/macosx-10.10/ICU-531.30/icuSources/i18n/ |
H A D | hebrwcal.cpp | 68 * Due to the rules for postponing the start of the year to avoid having 69 * certain holidays fall on the sabbath, the year can end up being three 90 * The cumulative # of days to the end of each month in a non-leap year 114 * The cumulative # of days to the end of each month in a leap year 225 int32_t year = get(UCAL_YEAR, status); local 231 if (acrossAdar1 && month>=ADAR_1 && !isLeapYear(year)) { 238 ++year; 245 if (acrossAdar1 && month<=ADAR_1 && !isLeapYear(year)) { 252 --year; 257 set(UCAL_YEAR, year); 317 int32_t year = get(UCAL_YEAR, status); local 387 startOfYear(int32_t year, UErrorCode &status) argument 471 isLeapYear(int32_t year) argument 477 monthsInYear(int32_t year) argument 567 int32_t year = (int32_t)( ((19. * m + 234.) / 235.) + 1.); // Years (approx) local 619 int32_t year; local [all...] |
H A D | japancal.cpp | 36 int16_t year; member in struct:__anon935 333 if(eyear == kEraInfo[era].year) { 334 // Yes, we're in the first year of this era. 346 if(eyear == kEraInfo[era].year) { 363 // EXTENDED_YEAR in JapaneseCalendar is a Gregorian year 365 int32_t year; local 369 year = internalGet(UCAL_EXTENDED_YEAR, kGregorianEpoch); 371 // Subtract one because year starts at 1 372 year = internalGet(UCAL_YEAR) + kEraInfo[internalGetEra()].year 382 int32_t year = internalGet(UCAL_EXTENDED_YEAR); // Gregorian year local [all...] |
H A D | persncal.cpp | 27 = {0,31,62,93,124,155,186,216,246,276,306,336}; // 0-based, for day-in-year 106 * Determine whether a year is a leap year in the Persian calendar 108 UBool PersianCalendar::isLeapYear(int32_t year) argument 111 ClockMath::floorDivide(25 * year + 11, 33, remainder); 116 * Return the day # on which the given year starts. Days are counted 119 int32_t PersianCalendar::yearStart(int32_t year) { argument 120 return handleComputeMonthStart(year,0,FALSE); 127 * @param year The Persian year 130 monthStart(int32_t year, int32_t month) const argument 187 int32_t year; local 211 int32_t year, month, dayOfMonth, dayOfYear; local [all...] |
H A D | taiwncal.cpp | 66 // EXTENDED_YEAR in TaiwanCalendar is a Gregorian year 68 int32_t year = kGregorianEpoch; local 72 year = internalGet(UCAL_EXTENDED_YEAR, kGregorianEpoch); 76 year = internalGet(UCAL_YEAR, 1) + kTaiwanEraStart; 78 year = 1 - internalGet(UCAL_YEAR, 1) + kTaiwanEraStart; 81 return year; 116 int32_t year = internalGet(UCAL_YEAR); 119 year = 1-year; 127 year [all...] |
H A D | indiancal.cpp | 94 * Determine whether the given gregorian year is a Leap year 96 static UBool isGregorianLeap(int32_t year) argument 98 return ((year % 4) == 0) && (!(((year % 100) == 0) && ((year % 400) != 0))); 108 * @param eyear The year in Saka Era 128 * Return the number of days in the given Indian year 130 * @param eyear The year in Saka Era. 138 * @param year Th 142 gregorianToJD(int32_t year, int32_t month, int32_t date) argument 163 int32_t year, month, day; local 196 IndianToJD(int32_t year, int32_t month, int32_t date) argument 266 int32_t year; local [all...] |
H A D | gregoimp.h | 93 #define kJan1_1JulianDay 1721426 // January 1, year 1 (Gregorian) 138 * Return TRUE if the given year is a leap year. 139 * @param year Gregorian year, with 0 == 1 BCE, -1 == 2 BCE, etc. 140 * @return TRUE if the year is a leap year 142 static inline UBool isLeapYear(int32_t year); 146 * @param year Gregorian year, wit 258 isLeapYear(int32_t year) argument 264 monthLength(int32_t year, int32_t month) argument 273 dayToFields(double day, int32_t& year, int32_t& month, int32_t& dom, int32_t& dow) argument [all...] |
/macosx-10.10/ruby-106/ruby/ |
H A D | timev.h | 5 VALUE year; /* 2000 for example. Integer. */ member in struct:vtm
|
/macosx-10.10/CPANInternal-159.1/Crypt-SSLeay-0.64/lib/Crypt/SSLeay/ |
H A D | X509.pm | 18 my($year, $month, $day, $hour, $minute, $second, $GMT)= 20 $year += 2000; 21 my $time="$year-$month-$day $hour:$minute:$second";
|
/macosx-10.10/ruby-106/ruby/lib/xmlrpc/ |
H A D | datetime.rb | 13 # from year 1970 on, and ruby's native Time class handles dates without the 20 attr_reader :year, :month, :day, :hour, :min, :sec 25 # of XMLRPC::DateTime#year= if +value+ is not of type Integer. 26 def year= (value) 28 @year = value 78 # parameters +year+, +month+, +day+ as date and 82 # or if +year+ is not of the Integer type. 83 def initialize(year, month, day, hour, min, sec) 84 self.year, self.month, self.day = year, mont [all...] |
/macosx-10.10/ICU-531.30/icuSources/test/compat/ |
H A D | tzone.pl | 8 print "Usage: tzone [year month day hour minute]\n"; 18 my $year = 0; 26 ($year, $month, $day, $hour, $minute) = @ARGV; 27 print "The date we are using is: $month-$day-$year $hour:$minute.\n"; 52 my @result = `./tzdate $year $month $day $hour $minute $USECURRENT`;
|