[all-commits] [llvm/llvm-project] 579d30: [libc++][chrono] Fixes format output of negative v...

Mark de Wever via All-commits all-commits at lists.llvm.org
Tue Apr 23 10:42:23 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 579d30109ae9526ea3ec89d2cadc846bd8cffae5
      https://github.com/llvm/llvm-project/commit/579d30109ae9526ea3ec89d2cadc846bd8cffae5
  Author: Mark de Wever <koraq at xs4all.nl>
  Date:   2024-04-23 (Tue, 23 Apr 2024)

  Changed paths:
    M libcxx/include/__chrono/formatter.h
    M libcxx/test/std/time/time.clock/time.clock.file/ostream.pass.cpp
    M libcxx/test/std/time/time.clock/time.clock.local/ostream.pass.cpp
    M libcxx/test/std/time/time.clock/time.clock.system/sys_time.ostream.pass.cpp

  Log Message:
  -----------
  [libc++][chrono] Fixes format output of negative values. (#89408)

When trying to express a time before the epoch (e.g. "one nanosecond
before 00:01:40 on 1900-01-01")
the date would be shown as:

  1900-01-01 00:01:39.-00000001

After this patch, that time would be correctly shown as:

  1900-01-01 00:01:39.999999999



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