Download src/php/php-src/ext/date/lib/timelib_private.h from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 4.82 kB
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/date/lib/timelib_private.h
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/date/lib/timelib_private.h
-
curl -L -o timelib_private.h https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/date/lib/timelib_private.h
4.82 kB
| /* | |
| * The MIT License (MIT) | |
| * | |
| * Copyright (c) 2015-2019 Derick Rethans | |
| * | |
| * Permission is hereby granted, free of charge, to any person obtaining a copy | |
| * of this software and associated documentation files (the "Software"), to deal | |
| * in the Software without restriction, including without limitation the rights | |
| * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| * copies of the Software, and to permit persons to whom the Software is | |
| * furnished to do so, subject to the following conditions: | |
| * | |
| * The above copyright notice and this permission notice shall be included in | |
| * all copies or substantial portions of the Software. | |
| * | |
| * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |
| * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
| * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | |
| * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | |
| * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | |
| * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | |
| * THE SOFTWARE. | |
| */ | |
| /* 400*365 days + 97 leap days */ | |
| struct _ttinfo | |
| { | |
| int32_t offset; | |
| int isdst; | |
| unsigned int abbr_idx; | |
| unsigned int isstdcnt; | |
| unsigned int isgmtcnt; | |
| }; | |
| struct _tlinfo | |
| { | |
| int64_t trans; | |
| int32_t offset; | |
| }; | |
| extern "C" { | |
| /* From unixtime2tm.c */ | |
| int timelib_apply_localtime(timelib_time *t, unsigned int localtime); | |
| /* From parse_posix.c */ | |
| timelib_sll timelib_ts_at_start_of_year(timelib_sll year); | |
| ttinfo* timelib_fetch_posix_timezone_offset(timelib_tzinfo *tz, timelib_sll ts, timelib_sll *transition_time); | |
| /* From parse_tz.c */ | |
| void timelib_time_tz_abbr_update(timelib_time* tm, const char* tz_abbr); | |
| ttinfo* timelib_fetch_timezone_offset(timelib_tzinfo *tz, timelib_sll ts, timelib_sll *transition_time); | |
| /* From timelib.c */ | |
| int timelib_strcasecmp(const char *s1, const char *s2); | |
| int timelib_strncasecmp(const char *s1, const char *s2, size_t n); | |
| } /* extern "C" */ | |