[all-commits] [llvm/llvm-project] a760e7: [libc] create TimeReader to look at a struct tm (#...

Michael Jones via All-commits all-commits at lists.llvm.org
Tue Feb 11 14:37:37 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a760e7faacb79e7ff0ae23d3ae370d1aa6e52666
      https://github.com/llvm/llvm-project/commit/a760e7faacb79e7ff0ae23d3ae370d1aa6e52666
  Author: Michael Jones <michaelrj at google.com>
  Date:   2025-02-11 (Tue, 11 Feb 2025)

  Changed paths:
    M libc/include/llvm-libc-types/struct_tm.h
    M libc/src/time/CMakeLists.txt
    M libc/src/time/mktime.cpp
    M libc/src/time/time_constants.h
    M libc/src/time/time_utils.cpp
    M libc/src/time/time_utils.h

  Log Message:
  -----------
  [libc] create TimeReader to look at a struct tm (#126138)

In the process of adding strftime (#122556) I wrote this utility class
to simplify reading from a struct tm. It provides helper functions that
return basically everything needed by strftime. It's not tested
directly, but it is thoroughly exercised by the strftime tests.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list