Re: [Rd] RFC: make as.difftime more consistent or convenient

2018-08-03 Thread S Ellison
> Thank you for your comments! But, what you wrote is known. What do you > want to express with regard to my questions? > > I wrote: > > … there is no appropriate format ..., > > although "weeks" is a legitimate unit of 'difftime': > > > > > as.difftime("12 w", "%...") > > > > > as.difftim

Re: [Rd] RFC: make as.difftime more consistent or convenient

2018-07-31 Thread dietmar.schindler
Hello! you, Emil Bode , wrote on Tuesday, July 31, 2018 1:55 PM: > Some of the changes you're proposing could be made (with effort), but note > that you're not > restricted to providing strings with a format. > What you're trying to do can be accomplished with as.difftime(12, > units='weeks'),

[Rd] RFC: make as.difftime more consistent or convenient

2018-07-31 Thread dietmar.schindler
Hello! I notice I can convert strings containing hour, minute or second specifications to a 'difftime': > as.difftime("12 h", "%H") Time difference of 12 hours > as.difftime("12 m", "%M") Time difference of 12 mins > as.difftime("12 s", "%S") Time difference of 12 secs But I can't do so with a