Nov 23
Jolle Carlestam Oddity in dates
Nov 23, 2015; 12:42
Jolle Carlestam
Oddity in dates
Is this a bug or something I just don’t understand?
local(
startdate = date('2015-01-01'),
enddate = date('2016-01-01')
)
#startdate -> dayofweek = 2
#enddate -> dayofweek = 2
#enddate -> add(-day = 6)
#startdate
'<br>'
#enddate
->
2015-11-23
2015-11-29
whereas this:
local(
startdate = date('2015-01-01'),
enddate = date('2016-01-01')
)
#startdate
'<br>'
#enddate
'<br>'
#startdate -> dayofweek = 2
#enddate -> dayofweek = 2
#enddate -> add(-day = 6)
#startdate
'<br>'
#enddate
->
2015-01-01
2016-01-01
2014-12-29
2016-01-03
Of course the second outcome is what I desire. But I don’t understand why dayofweek changes behavior when the date object has been output as string first.
Testing done on Lasso 9.3.1 B3 using OS X Yosemite.
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>
Nov 23
deco rior Re: Oddity in dates
Nov 23, 2015; 04:48
deco rior
Re: Oddity in dates
Nov 23
Jolle Carlestam Re: Oddity in dates
Nov 23, 2015; 13:08
Jolle Carlestam
Re: Oddity in dates
Nov 23
deco rior Re: Oddity in dates
Nov 23, 2015; 05:11
deco rior
Re: Oddity in dates
Nov 23
Jolle Carlestam Re: Oddity in dates
Nov 23, 2015; 13:39
Jolle Carlestam
Re: Oddity in dates
Nov 23
Jolle Carlestam Re: Oddity in dates
Nov 23, 2015; 13:54
Jolle Carlestam
Re: Oddity in dates
Nov 23
Ke Carlton Re: Oddity in dates
Nov 23, 2015; 20:52
Ke Carlton
Re: Oddity in dates
Nov 23
Jolle Carlestam Re: Oddity in dates
Nov 23, 2015; 22:00
Jolle Carlestam
Re: Oddity in dates
Jan 19
Eric Knibbe Re: Oddity in dates
Jan 19, 2016; 17:04
Eric Knibbe
Re: Oddity in dates