HomePhabricator

This introduces gmtime to LLVM libc, based on C99/C2X/Single Unix Spec.

Authored by rtenneti on Mar 11 2021, 4:17 PM.

Description

This introduces gmtime to LLVM libc, based on C99/C2X/Single Unix Spec.

This change doesn't handle TIMEZONE, tm_isdst and leap seconds.

Moved shared code between mktime and gmtime into time_utils.cpp.

Reviewed By: sivachandra

Differential Revision: https://reviews.llvm.org/D98467