Re: [PATCH 1/2] Add function to convert between calendar time and broken-down time for universal use

From: Andi Kleen
Date: Sat Jul 18 2009 - 08:26:50 EST


Zhaolei <zhaolei@xxxxxxxxxxxxxx> writes:
> +
> +static void __offtime(__kernel_time_t totalsecs, int offset,
> + unsigned int *year, unsigned int *mon, unsigned int *mday,
> + unsigned int *hour, unsigned int *min, unsigned int *sec,
> + unsigned int *wday, unsigned int *yday)
> +{
> + long days, rem, y;
> + const unsigned short *ip;
> +
> + days = totalsecs / SECS_PER_DAY;

Does this handle leap seconds? Doesn't seem to.

-Andi

--
ak@xxxxxxxxxxxxxxx -- Speaking for myself only.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/