Hello there, is there a corresponding function or struct in linux for the the struct SystemTime in windows? Thanks! :)

Recommended Answers

All 3 Replies

The tm structure seems to be what you're looking for (ctime header).

Thank you very much sir. :)

tm struct does not contain milliseconds. But if you don't care about milliseconds then tm will work in all platforms and compilers because it is in standard C library.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.