nerdexam
Huawei

H13-311_V3.5 · Question #350

The timestamps in the Python language- are represented by how long (in seconds) elapsed from midnight (epoch) on January 1, 1970

The correct answer is A. True. Option A is correct because Python's time module represents timestamps as floating-point numbers measuring seconds elapsed since the Unix epoch - midnight UTC on January 1, 1970 - a convention inherited from Unix/POSIX systems. This is why time.time() returns a large number…

Huawei AI Development Platforms and Solutions

Question

The timestamps in the Python language- are represented by how long (in seconds) elapsed from midnight (epoch) on January 1, 1970

Options

  • ATrue
  • BFalse

How the community answered

(32 responses)
  • A
    81% (26)
  • B
    19% (6)

Explanation

Option A is correct because Python's time module represents timestamps as floating-point numbers measuring seconds elapsed since the Unix epoch - midnight UTC on January 1, 1970 - a convention inherited from Unix/POSIX systems. This is why time.time() returns a large number like 1723161600.0, representing how many seconds have passed since that fixed reference point. There are no distractors here since this is a True/False question, making B simply incorrect - timestamps are not counted from any other origin point, and they are not measured in milliseconds or any other unit by default.

Memory tip: Think "1970 = Year Zero for computers" - Unix was born around that era, and January 1, 1970 00:00:00 UTC was chosen as the universal clock reset. When in doubt, remember time.time() gives you seconds since 1970.

Topics

#Python timestamps#Unix epoch#time representation#datetime

Community Discussion

No community discussion yet for this question.

Full H13-311_V3.5 Practice