head 1.3; access; symbols LMTP2NNTP_1_4_0:1.1.1.1 LMTP2NNTP_1_3_0:1.2 LMTP2NNTP_1_3b2:1.2 LMTP2NNTP_1_3b1:1.2 LMTP2NNTP_1_3a3:1.2 LMTP2NNTP_1_3a2:1.2 LMTP2NNTP_1_3a1:1.2 LMTP2NNTP_1_2_0:1.2 LMTP2NNTP_1_2b4:1.2 LMTP2NNTP_1_2b3:1.2 LMTP2NNTP_1_2b2:1.2 LMTP2NNTP_1_2b1:1.2 LMTP2NNTP_1_2a8:1.2 LMTP2NNTP_1_2a7:1.2 LMTP2NNTP_1_2a6:1.2 LMTP2NNTP_1_2a5:1.1.1.1 TAI_0_0_0:1.1.1.1 VENDOR:1.1.1; locks; strict; comment @ * @; 1.3 date 2005.01.24.11.04.07; author rse; state Exp; branches; next 1.2; 1.2 date 2002.08.14.14.28.27; author rse; state Exp; branches; next 1.1; 1.1 date 2002.04.18.09.10.46; author rse; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2002.04.18.09.10.46; author rse; state Exp; branches; next ; desc @@ 1.3 log @flush pending changes related to TAI to calendar transformations @ text @/*- * Copyright (c) 2001 Alexey Zelkin * Copyright (c) 1997 FreeBSD Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. */ #if 0 #include #endif #include #if 0 __FBSDID("$FreeBSD: src/lib/libc/stdtime/timelocal.c,v 1.23 2002/03/22 21:53:13 obrien Exp $"); #endif #include "tai_p.h" /* ui64 representation of a full second in atto seconds, i.e. 10^(-18) atto-seconds */ ui64_t tai_full_sec_in_asec = ui64_cons(0D,E0,B6,B3,A7,64,00,00); /* ui64 representation of a half second in atto seconds, i.e. (10^(-18)/2) atto-seconds */ ui64_t tai_half_sec_in_asec = ui64_cons(06,F0,5B,59,D3,B2,00,00); #define LCTIME_SIZE (sizeof(tai_locale_t) / sizeof(char *)) const tai_locale_t tai_locale = { { "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" }, { "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" }, { "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" }, { "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" }, /* X_fmt */ "%H:%M:%S", /* * x_fmt * Since the C language standard calls for * "date, using locale's date format," anything goes. * Using just numbers (as here) makes Quakers happier; * it's also compatible with SVR4. */ "%m/%d/%y", /* * c_fmt */ "%a %b %e %H:%M:%S %Y", /* am */ "AM", /* pm */ "PM", /* date_fmt */ "%a %b %e %H:%M:%S %Z %Y", /* alt_month * Standalone months forms for %OB */ { "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" }, /* md_order * Month / day order in dates */ "md", /* ampm_fmt * To determine 12-hour clock format time (empty, if N/A) */ "%I:%M:%S %p" }; @ 1.2 log @hacking wild to get OSSP tai (just) working on Solaris @ text @d39 6 @ 1.1 log @Initial revision @ text @d28 1 d30 1 @ 1.1.1.1 log @Import first cut for OSSP tai @ text @@