Skip to content

Commit 49caa9f

Browse files
committed
Correct the description of the time field in the document to clearly indicate that it is the number of seconds since the Unix epoch.
1 parent a34b6df commit 49caa9f

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

Doc/library/os.rst

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3177,18 +3177,18 @@ features:
31773177

31783178
.. attribute:: st_atime
31793179

3180-
Time of most recent access expressed in seconds since the epoch
3180+
Time of most recent access expressed in seconds since the Unix epoch
31813181
(see the :mod:`time` module).
31823182

31833183
.. attribute:: st_mtime
31843184

3185-
Time of most recent content modification expressed in seconds since
3186-
the epoch (see the :mod:`time` module).
3185+
Time of most recent content modification expressed in seconds since
3186+
the Unix epoch (see the :mod:`time` module).
31873187

31883188
.. attribute:: st_ctime
31893189

3190-
Time of most recent metadata change expressed in seconds since the
3191-
epoch (see the :mod:`time` module).
3190+
Time of most recent metadata change expressed in seconds since the
3191+
Unix epoch (see the :mod:`time` module).
31923192

31933193
.. versionchanged:: 3.12
31943194
``st_ctime`` is deprecated on Windows. Use ``st_birthtime`` for
@@ -3197,22 +3197,22 @@ features:
31973197

31983198
.. attribute:: st_atime_ns
31993199

3200-
Time of most recent access expressed in nanoseconds since the epoch
3200+
Time of most recent access expressed in nanoseconds since the Unix epoch
32013201
as an integer.
32023202

32033203
.. versionadded:: 3.3
32043204

32053205
.. attribute:: st_mtime_ns
32063206

3207-
Time of most recent content modification expressed in nanoseconds since
3208-
the epoch as an integer.
3207+
Time of most recent content modification expressed in nanoseconds since
3208+
the Unix epoch as an integer.
32093209

32103210
.. versionadded:: 3.3
32113211

32123212
.. attribute:: st_ctime_ns
32133213

3214-
Time of most recent metadata change expressed in nanoseconds since the
3215-
epoch as an integer.
3214+
Time of most recent metadata change expressed in nanoseconds since the
3215+
Unix epoch as an integer.
32163216

32173217
.. versionadded:: 3.3
32183218

@@ -3223,7 +3223,7 @@ features:
32233223

32243224
.. attribute:: st_birthtime
32253225

3226-
Time of file creation expressed in seconds since the epoch
3226+
Time of file creation expressed in seconds since the Unix epoch
32273227
(see the :mod:`time` module). This attribute is not always available,
32283228
and may raise :exc:`AttributeError`.
32293229

@@ -3232,7 +3232,7 @@ features:
32323232

32333233
.. attribute:: st_birthtime_ns
32343234

3235-
Time of file creation expressed in nanoseconds since the epoch as an
3235+
Time of file creation expressed in nanoseconds since the Unix epoch as an
32363236
integer. This attribute is not always available, and may raise
32373237
:exc:`AttributeError`.
32383238

0 commit comments

Comments
 (0)