Dec 29, 2014; 19:11
Jolle Carlestam
Duration too sticky for my taste
While testing Lasso 9 alternatives to Steves countdown I found an odd thing with the duration type. It was a bit too sticky for me.
Some examples:
local(
start = date,
end = date('2015-01-01 00:00:00')
)
local(d = duration(#start, #end))
#d
-> 52:53:40 // expected result
One more:
local(
start = date,
end = date('2015-01-01 00:00:00')
)
#end -> timezone = 'America/Los_Angeles'
local(d = duration(#start, #end))
#d
-> 61:53:40 // also expected result
But, combine them:
local(
start = date,
end = date('2015-01-01 00:00:00')
)
local(dl = duration(#start, #end))
#dl
'\n'
#end -> timezone = 'America/Los_Angeles'
local(ds = duration(#start, #end))
#ds
-> 52:53:40
52:53:40 // I would have expected the second one to be honoring the timezone change.
What=92s happening here?
HDB
Jolle
#############################################################
This message is sent to you because you are subscribed to
the mailing list Lasso Lasso@lists.lassosoft.com
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <Lasso-unsubscribe@lists.lassosoft.com>
Send administrative queries to <Lasso-request@lists.lassosoft.com>