gettimeofday()Here is the syntax
We will try to generate output by using this. Here is the sample code
The output of above code is here
The first element [sec] gives the time in seconds elapsed between Unix Epoch time and current time. The second element [usec] gives in microseconds. [minuteswest] - minutes west of Greenwich [dsttime] - type of dst correction All these data are related to server side and not the local time of the client computer. Getting float dataInstead of an array we can get float value like this.
The output is here. Refresh this page and see how the data is changing
Subscribe to our YouTube Channel here
This article is written by plus2net.com team.
https://www.plus2net.com
![]() |