Debian Codegraph @

crt/aws-c-common/source/windows/time.c

raw symbols SCIP
1 /**
2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 * SPDX-License-Identifier: Apache-2.0.
4 */
5 #include <aws/common/time.h>
6
7 time_t aws_timegm(struct tm *const t) {
8 return _mkgmtime(t);
9 }
10
11 void aws_localtime(time_t time, struct tm *t) {
12 localtime_s(t, &time);
13 }
14
15 void aws_gmtime(time_t time, struct tm *t) {
16 gmtime_s(t, &time);
17 }