Message-ID: <x2y8a9gej5.fsf@turmalin.kubism.ku.dk>
Date: 2005-05-21T08:38:06Z
From: Peter Dalgaard
Subject: print format for difftime
In-Reply-To: <40D3930AC1C8EA469E39536E5BC8083545AB02@EXDKBA021.corp.novocorp.net>
"BXC (Bendix Carstensen)" <bxc at steno.dk> writes:
> Has anyone written a function that will print a difftime in the form:
>
> hh:mm:ss
>
> or
>
> yy-mm-dd hh:mm:ss
>
> depending on the actual size.
> (sloppy notation for months/minutes, but surely you get the point).
Ummm, how are you going to convert a number of days to
years/months/days without specifying an origin? (00-01-00 could be
28,29,30, or 31 days.) Unless, of course you want to deal in "banker's
months" of 30 + 5.25625/12 days.
--
O__ ---- Peter Dalgaard Blegdamsvej 3
c/ /'_ --- Dept. of Biostatistics 2200 Cph. N
(*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907