/macosx-10.10/ksh-23/ksh/src/lib/libast/tm/ |
H A D | tmequiv.c | 30 #include <tm.h> 50 * return the circa 2000 equivalent calendar year for tm 54 tmequiv(Tm_t* tm) argument 56 return tm->tm_year < (2038 - 1900) ? (tm->tm_year + 1900) : equiv[tm->tm_wday + tmisleapyear(tm->tm_year)];
|
H A D | tmfix.c | 37 * correct out of bounds fields in tm 41 * tm is the return value 45 tmfix(register Tm_t* tm) argument 58 if (w = !tm->tm_sec && !tm->tm_min && !tm->tm_mday && !tm->tm_year && !tm->tm_yday && !tm->tm_isdst) 60 tm [all...] |
H A D | tmweek.c | 48 * if week<0 then return week for tm 49 * if day<0 then set tm to first day of week 50 * otherwise set tm to day in week 51 * and return tm->tm_yday 55 tmweek(Tm_t* tm, int type, int week, int day) argument 61 if ((day = tm->tm_wday - tm->tm_yday % 7) < 0) 63 week = (tm->tm_yday + offset[day][type]) / 7; 67 week = (day > 0 && day < 6 || tmisleapyear(tm->tm_year - 1)) ? 53 : 52; 68 else if (week == 53 && (tm [all...] |
H A D | tmtime.c | 38 tmtime(register Tm_t* tm, int west) argument 40 return tmxsec(tmxtime(tm, west));
|
H A D | tmxtime.c | 42 * with other tm*() that may return static Tm_t* 46 tmxtime(register Tm_t* tm, int west) argument 54 struct tm* tl; 58 ts = *tm; 59 to = tm; 60 tm = &ts; 62 tmfix(tm); 63 y = tm->tm_year; 68 if ((n = tm->tm_mon) > 11) 73 t += tm_data.sum[n] + tm [all...] |
H A D | tmxmake.c | 40 tmxtm(register Tm_t* tm, Time_t t, Tm_zone_t* zone) argument 42 register struct tm* tp; 68 if (!(tm->tm_zone = zone)) 71 tm->tm_zone = &tm_data.zone[2]; 73 tm->tm_zone = tm_info.zone; 75 if ((o = 60 * tm->tm_zone->west) && x > o) 84 tm->tm_sec = n % 60 + leapsec; 86 tm->tm_min = n % 60; 88 tm->tm_hour = n % 24; 91 tm [all...] |
/macosx-10.10/ntp-92/libntp/ |
H A D | humandate.c | 20 struct tm *tm; local 22 tm = localtime(&cursec); 23 if (!tm) 29 tm->tm_mday, months[tm->tm_mon], 30 tm->tm_hour, tm->tm_min, tm->tm_sec);
|
H A D | uglydate.c | 20 struct tm *tm; local 29 tm = gmtime(&sec); 35 tm->tm_yday = 0; 36 tm->tm_hour = 0; 37 tm->tm_min = 0; 38 tm->tm_sec = 0; 40 year = tm->tm_year; 45 timep, year, tm->tm_yday, tm [all...] |
/macosx-10.10/Heimdal-398.1.2/lib/roken/ |
H A D | timegm.c | 51 rk_timegm (struct tm *tm) argument 59 if (tm->tm_year < 0) 61 if (tm->tm_mon < 0 || tm->tm_mon > 11) 63 if (tm->tm_mday < 1 || tm->tm_mday > ndays[is_leap(tm->tm_year)][tm->tm_mon]) 65 if (tm [all...] |
H A D | localtime_r.c | 42 ROKEN_LIB_FUNCTION struct tm * ROKEN_LIB_CALL 43 localtime_r(const time_t *timer, struct tm *result) 50 struct tm *tm; 52 tm = localtime((time_t *)timer); 53 if (tm == NULL) 55 *result = *tm;
|
H A D | strftime.c | 119 * Return the week number of `tm' (Sunday being the first day of the week) 124 week_number_sun (const struct tm *tm) argument 126 return (tm->tm_yday + 7 - (tm->tm_yday % 7 - tm->tm_wday + 7) % 7) / 7; 130 * Return the week number of `tm' (Monday being the first day of the week) 135 week_number_mon (const struct tm *tm) argument 137 int wday = (tm 149 week_number_mon4(const struct tm *tm) argument 170 strftime(char *buf, size_t maxsize, const char *format, const struct tm *tm) argument [all...] |
/macosx-10.10/Heimdal-398.1.2/lib/asn1/ |
H A D | timegm.c | 56 _der_timegm (struct tm *tm) argument 64 if (tm->tm_year > ASN1_MAX_YEAR) 67 if (tm->tm_year < 0) 69 if (tm->tm_mon < 0 || tm->tm_mon > 11) 71 if (tm->tm_mday < 1 || tm->tm_mday > (int)ndays[is_leap(tm->tm_year)][tm 96 _der_gmtime(time_t t, struct tm *tm) argument [all...] |
H A D | check-timegm.c | 42 struct tm tm; local 45 memset(&tm, 0, sizeof(tm)); 46 tm.tm_year = 106; 47 tm.tm_mon = 9; 48 tm.tm_mday = 1; 49 tm.tm_hour = 10; 50 tm.tm_min = 3; 52 t = _der_timegm(&tm); [all...] |
/macosx-10.10/OpenSSH-189/osslshim/heimdal-asn1/ |
H A D | asn1-timegm.c | 78 _der_timegm (struct tm *tm) argument 86 if (tm->tm_year > ASN1_MAX_YEAR) 89 if (tm->tm_year < 0) 91 if (tm->tm_mon < 0 || tm->tm_mon > 11) 93 if (tm->tm_mday < 1 || tm->tm_mday > (int)ndays[is_leap(tm->tm_year)][tm 118 _der_gmtime(time_t t, struct tm *tm) argument [all...] |
/macosx-10.10/ksh-23/ksh/src/lib/libast/comp/ |
H A D | strftime.c | 30 #include <tm.h> 50 strftime(char* buf, size_t len, const char* format, const struct tm* tm) 59 * nl_langinfo() may call strftime() with bogus tm except for 63 if (tm->tm_sec < 0 || tm->tm_sec > 60 || 64 tm->tm_min < 0 || tm->tm_min > 59 || 65 tm->tm_hour < 0 || tm [all...] |
H A D | strptime.c | 48 strptime(const char* s, const char* format, struct tm* ts) 53 Tm_t tm; 55 memset(&tm, 0, sizeof(tm)); 56 tm.tm_sec = ts->tm_sec; 57 tm.tm_min = ts->tm_min; 58 tm.tm_hour = ts->tm_hour; 59 tm.tm_mday = ts->tm_mday; 60 tm.tm_mon = ts->tm_mon; 61 tm [all...] |
H A D | mktime.c | 30 #include <tm.h> 50 mktime(struct tm* ts) 53 Tm_t tm; 55 tm.tm_sec = ts->tm_sec; 56 tm.tm_min = ts->tm_min; 57 tm.tm_hour = ts->tm_hour; 58 tm.tm_mday = ts->tm_mday; 59 tm.tm_mon = ts->tm_mon; 60 tm.tm_year = ts->tm_year; 61 tm [all...] |
/macosx-10.10/OpenSSL098-52/src/crypto/ |
H A D | o_time.h | 64 struct tm *OPENSSL_gmtime(const time_t *timer, struct tm *result);
|
/macosx-10.10/gnutar-453/gnutar/lib/ |
H A D | time_r.c | 27 static struct tm * 28 copy_tm_result (struct tm *dest, struct tm const *src) 37 struct tm * 38 gmtime_r (time_t const * restrict t, struct tm * restrict tp) 43 struct tm * 44 localtime_r (time_t const * restrict t, struct tm * restrict tp)
|
H A D | gettimeofday.c | 41 static struct tm tm_zero_buffer; 42 static struct tm *localtime_buffer_addr = &tm_zero_buffer; 50 struct tm * 54 extern struct tm *localtime (time_t const *); 55 struct tm *tm = localtime (timep); local 58 localtime_buffer_addr = tm; 60 return tm; 64 struct tm * 68 extern struct tm *gmtim 69 struct tm *tm = gmtime (timep); local [all...] |
/macosx-10.10/gpatch-3/patch/ |
H A D | maketime.h | 35 struct tm *time2tm __MAKETIME_P ((time_t, int)); 36 time_t difftm __MAKETIME_P ((struct tm const *, struct tm const *)); 38 time_t tm2time __MAKETIME_P ((struct tm *, int)); 39 void adjzone __MAKETIME_P ((struct tm *, long));
|
/macosx-10.10/lukemftp-14/tnftp/libnetbsd/ |
H A D | timegm.c | 21 sub_mkgmt(struct tm *tm) argument 37 if ((unsigned) tm->tm_mon >= 12) 39 if (tm->tm_year < EPOCH_YEAR - TM_YEAR_BASE) 42 y = tm->tm_year + TM_YEAR_BASE - (tm->tm_mon < 2); 45 t = ((((time_t) (tm->tm_year - (EPOCH_YEAR - TM_YEAR_BASE)) * 365 + 46 moff[tm->tm_mon] + tm->tm_mday - 1 + nleapdays) * 24 + 47 tm 53 timegm(struct tm *tm) argument [all...] |
/macosx-10.10/lsof-53/lsof/ |
H A D | util.c | 63 struct tm *lt; 64 time_t tm; local 66 tm = time((time_t *)NULL); 67 lt = localtime(&tm);
|
/macosx-10.10/ruby-106/ruby/test/rake/ |
H A D | test_rake_task_manager.rb | 8 @tm = Rake::TestCase::TaskManager.new 12 refute_nil @tm 13 assert_equal [], @tm.tasks 17 t = @tm.define_task(Rake::Task, :t) 19 assert_equal @tm, t.application 24 @tm['bad'] 31 t = @tm.define_task(Rake::Task, :t) 32 assert_equal t, @tm[:t] 36 @tm.in_namespace("x") do 37 t = @tm [all...] |
/macosx-10.10/Libc-1044.1.2/stdtime/ |
H A D | getdate.c | 52 static const struct tm tmundef = { 68 * resulting tm structure. 70 struct tm * 73 static struct tm tm; local 74 struct tm *now, *result = NULL; 131 tm = tmundef; 132 if(strptime(str, buf, &tm) == NULL) { 139 if(tm.tm_sec != UNDEFINED) 141 if(tm [all...] |