Skip to content

Commit c9eba65

Browse files
committed
doc: kernel: timeutil: remove note about 64-bitness
Remove the note about time_t being 64-bit in Zephyr, since that is generally not accurate and depends on the configuration of the C library. Signed-off-by: Chris Friedt <[email protected]>
1 parent 25ab312 commit c9eba65

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

doc/kernel/timeutil.rst

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -349,15 +349,6 @@ since C11. The definition of ``struct timespec`` is as shown below.
349349
long tv_nsec; /* nanoseconds */
350350
};
351351
352-
.. _note:
353-
354-
The C standard does not define the size of ``time_t``. However, Zephyr
355-
uses 64-bits for ``time_t``. The ``long`` type is required to be at least
356-
32-bits, but usually matches the word size of the architecture. Both
357-
elements of ``struct timespec`` are signed integers. ``time_t`` is defined
358-
to be 64-bits both for historical reasons and to be robust enough to
359-
represent times in the future.
360-
361352
The ``tv_nsec`` field is only valid with values in the range ``[0, 999999999]``. The
362353
``tv_sec`` field is the number of seconds since the epoch. If ``struct timespec`` is
363354
used to express a difference, the ``tv_sec`` field may fall into a negative range.

0 commit comments

Comments
 (0)