Debian Codegraph @

crt/aws-c-common/include/aws/common/time.h

raw symbols SCIP
1 #ifndef AWS_COMMON_TIME_H
2 #define AWS_COMMON_TIME_H
3 /**
4 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
5 * SPDX-License-Identifier: Apache-2.0.
6 */
7 #include <aws/common/common.h>
8
9 #include <time.h>
10
11 AWS_PUSH_SANE_WARNING_LEVEL
12 AWS_EXTERN_C_BEGIN
13
14 /**
15 * Cross platform friendly version of timegm
16 */
17 AWS_COMMON_API time_t aws_timegm(struct tm *const t);
18
19 /**
20 * Cross platform friendly version of localtime_r
21 */
22 AWS_COMMON_API void aws_localtime(time_t time, struct tm *t);
23
24 /**
25 * Cross platform friendly version of gmtime_r
26 */
27 AWS_COMMON_API void aws_gmtime(time_t time, struct tm *t);
28
29 AWS_EXTERN_C_END
30 AWS_POP_SANE_WARNING_LEVEL
31
32 #endif /* AWS_COMMON_TIME_H */