Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[vdr] Re: Possible correction for vdr.5? EPG Start Time and UTC..
Thomas Keil wrote:
>
> Sergei Haller wrote:
> > Correct me if I am wrong, but as far as I know, UTC just means "Universal
> > Coordinated Time", which is just a specific timezone and is equivalent to
> > GMT ("Greenwich Mean Time").
> > so you can measure the time with whichever accuracy you would like.
> >
> > time_t type stores the time, as you have pointed out correctly, in
> > seconds.
>
> I don't really know, so just skip the UTC part if it's wrong :-D
>
> Nevertheless the unit of measurement of the time (here: seconds) should
> be added to the manual, since it confuses potential programmers - I had
> at least five cases on our IRC-Channel #vdr-portal complaining that
> their programs don't work as intended since most of the time-functions
> of many programming languages expect their timestamps in milliseconds....
From "The GNU C Library Reference Manual", p. 630:
time_t
This is the data type used to represent simple time. Sometimes,
it also represents an elapsed time. When interpreted as a calendar
time value, it represents the number of seconds elapsed since
00:00:00 on January 1, 1970, Coordinated Universal Time.
So I believe "the time (as a time_t integer) in UTC when this event starts"
is perfectly clear.
Klaus
--
Info:
To unsubscribe send a mail to ecartis@linuxtv.org with "unsubscribe vdr" as subject.
Home |
Main Index |
Thread Index