- Feature Articles
- CodeSOD
- Error'd
-
Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
I'm baffled how someone knows how to use AddDays with negative numbers but fails to use AddYears ...
Admin
Idk. The line doesn't seem important: if it's one year before the release date, then ... I don't think it matters much if it's one year or one year minus a day.
It is an odd line though. Why would you change behavior a year after release? Urge people to upgrade? If it's more serious than that, then the test itself is a bigger WTF.
Admin
Since
DateTimeOffsetcame late to SQL Server I've seen a lot of issues when usingDateTimeinstead ofDateTimeOffsetfor date calculations in C#. In some instances combining bad data and bad code can produce the correct result. 😆Admin
We lack the context to answer that, because we don't know what the "release date" is referring to. Is it the software's own release? Or is it the date where some business object was "released"? (And, of course, without knowing what "releasing" the business object even means, it's extremely difficult to judge anything about if the code is correct.)
And, in any event, I'd invert the adjustment and compare the release date plus a year to "now". But do it with
.AddYears(1).Admin
We need to abolish the leap year thing anyway. The only thing its good for is preventing a slow drift in month names vs seasons. And seasons are already out of whack thanks to climate change. The average person only lives for less than 100 years anyway so the drift won't even effect us that much.
Admin
<quote>We need to abolish the leap year thing anyway. The only thing its good for is preventing a slow drift in month names vs seasons. And seasons are already out of whack thanks to climate change. The average person only lives for less than 100 years anyway so the drift won't even effect us that much.</quote>
Just like the Egyptians, they kept using the their calendar for 2000 years eventually going through a full cycle and coming back in sync with the seasons....
Admin
I say we combine the best of the Egyptian model and the Leap Year model: the year is 360 days long, and then you get 5 (or 6) days that aren't "part" of the year, and represent a festival. It's party time.
Admin
*affect
Admin
The only thing? Really? You've thought this through? Absolutely no other reason saunters through the crosswalk of your mind? Fantastic, I look forward to the complete lack of DateTime incompatibilities this will result in.
Admin
Reinventing the International Fixed Calender?
Admin
"Why would you change behavior a year after release? " Because it's a 1-year contract and something needs to happen to justify renewal.
Admin
Technically you'd be wrong about 75.8% of the time over a 1,000 year period. Depending on the 100 year period you'd be wrong 75% or 76% of the time.
Admin
"Because it's a 1-year contract and something needs to happen to justify renewal."
Sales: "Is there someone less experienced I can talk to?"
Admin
Gee, in the Northeast there have been two large snowstorms in January and February, which the last I checked are winter months. "Seasons are already out of whack" my foot.
Admin
Tell that to all those folks who argue about the date calculations for Easter...
Admin
Yeah right. Not. That reminds me of some "argument" I heard when France mandated the 35-hour week: 5 hour party every week! Look that worked so well in the long run, everybody else copied the model! sarcasm
Also you know what would happen if someone wanted to change the calendar system. There are 873,501,477 ways to choose 5 days from 365.
Admin
Or not:
"Don't worry about people stealing your ideas. If your ideas are any good, you'll have to ram them down people's throats." --- Howard Aiken.
Admin
They're winter months only in the northern hemisphere.
Admin
…which is where said snowstorms took place.
Admin
Votes for the Mayan calendar anyone?
Admin
52,521,291,823
Admin
That seems like a pretty important reason.
No they're not. Climate change is making everything warmer on average, but winter is still colder than summer.
The average person only experiences about 18 leap days in their whole life time. It doesn't seem to onerous a burden to keep the calendar year in sync with the solar year.
Admin
516052:
How so? It is cold (and snowy where applicable) in the Winter months and warm in the Summer months. Leaves turn color and then fall in the Autumn, things start growing (and snow melts, where applicable) in the Spring. For over 50 years I have been seeing the same sort of weather patterns and oddities, with minimal change - some years are warmer, some years are cooler. All the noise about climate change is just that, a pointless and needless distraction that is not useful nor productive for anyone.
Admin
Australia would like to speak to both you and TechHound :)
At least, Western Australia would.
Never seen leaves fall in Autumn, Western Australia really only has 2 seasons, "Bloody Hot" and "Not so Bloody Hot" :)
Admin
Anyone who thinks they understand "seasons" should simply read the wiki article: https://en.wikipedia.org/wiki/Season.
Lotta folks is so called "temperate" climates (IOW the ones that get too hot and too cold) assume that reality applies everywhere. It does not. Like every cultural artifact, there are as many conventions as there are places.