• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /**
2  * Copyright (c) 2022 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *   http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #ifndef __TIME_IMPL_H__
17 #define __TIME_IMPL_H__
18 
19 #include <time.h>
20 
21 hidden int __days_in_month(int, int);
22 hidden int __month_to_secs(int, int);
23 hidden long long __year_to_secs(long long, int *);
24 hidden long long __tm_to_secs(const struct tm *);
25 hidden const char *__tm_to_tzname(const struct tm *);
26 hidden int __secs_to_tm(long long, struct tm *);
27 hidden void __secs_to_zone(long long, int, int *, long *, long *, const char **);
28 hidden const char *__strftime_fmt_1(char (*)[100], size_t *, int, const struct tm *, locale_t, int);
29 extern hidden const char __utc[];
30 extern hidden const char __gmt[];
31 
32 #endif