News for hackers. Stuff that matters.
Re:If you're using YYYY in your JVM service or %G in anythin... by danielweber on Monday December 29, 2014 @11:46AM (#8810495)
I always wondered "who in the world uses that stuff?" when I read date library docs. Now I know.

I also remember at one startup when I asked the payroll guy how many pay periods there were that year, he scoffed "26, it's always 26." Well, not with years having fractionally more than 26 ^H^H^H 52 weeks there aren't.

Re:If you're using YYYY in your JVM service or %G in anythin... by IgorPartola on Monday December 29, 2014 @02:18PM (#8811287)
This is exactly why we should adopt a 13 month calendar, with a Year Day as the last day of the year. If it's a leap year, there'd be two consecutive Year Days. These days should be special: they are holidays, so everyone has them off. This immediately solves the payroll problem for most people: just don't pay them for this day (obviously adjusting the numbers such that if you make $60,000/year, you still get that).

For those who work on this day (medical professionals, etc.) the rate is different (being a holiday and all), so they just get paid by the hour, regardless of what they do throughout the year.

Your payroll can now be weekly, biweekly, monthly, or whatever you want: you still get the same amount of money per month. This is nice because you don't get weirdness with things like rent/mortgage payments which are monthly. For example, for those who get paid biweekly, you get two months a year where you get an extra payment. This is silly and leads to more difficult accounting and budgeting.

Monthly is nice, but lots of your expenses are likely one a week-by-week basis: groceries, entertainment, etc.

Weekly is AFAIAC the nicest: it is the easiest to budget because it's as close to the common denominator as possible. However, it is not the LCD, so it still has the weird problem of getting more money in some months vs others.

Re:If you're using YYYY in your JVM service or %G in anythin... by jrochkind1 on Monday December 29, 2014 @04:08PM (#8811781)
I like the idea of a day that everyone has off, but I'm not sure you realize how drastic a change that would be. NO places of business open, no gas stations, no drug stores, no hospitals, no toll collectors, no trains, plains, or mass transit -- no police or firemen?

Of course, changing the calendar isn't a realistic plan anyway (Americans still won't accept the freaking metric system, that's too much change! and of course there would be costs to having a calendar different than the rest of the world, unless we get EVERYONE to change). But making _everyone_ have off is even less realistic. So payroll systems would still probably need to account for the days.

But I do like the idea of a day or two that literally everyone has off, and would subscribe to your newsletter.

Re:If you're using YYYY in your JVM service or %G in anythin... by tankenmate on Monday December 29, 2014 @04:28PM (#8811896)
Well Arabic countries traditionally use the Islamic calendar (luna based) rather than the Gregorian calendar (solar based). If memory serves Myanmar (nee Burma) uses a different calendar as well.
Re:If you're using YYYY in your JVM service or %G in anythin... by hrasyid on Monday January 05, 2015 @06:44PM (#8842030)
What's your point? They can afford to switch from Islamic calendar to Gregorian, because the majority already use Gregorian. It doesn't mean that it will be easy to make a country switch to a 13-month calendar that nobody else use
Re:If you're using YYYY in your JVM service or %G in anythin... by jrochkind1 on Monday December 29, 2014 @06:31PM (#8812423)
There are a variety of different traditional calendars from different cultures, but I strongly suspect business people in, say, Saudi Arabia, Dubai, or UAE use the same calendar we do. I in fact strongly suspect _everyone_ in those countries do, for their day-to-day non-religious date-related tasks.

Wikipedia confirms "The Islamic calendar is now used primarily for religious purposes, and for official dating of public events and documents in Muslim countries". http://en.wikipedia.org/wiki/Islamic_calendar#Uses

Re:If you're using YYYY in your JVM service or %G in anythin... by wbronitsky on Monday December 29, 2014 @06:10PM (#8812332)
I agree. The solution to a software problem is for sure to change the way the entire world views dates.
Re:If you're using YYYY in your JVM service or %G in anythin... by IgorPartola on Tuesday December 30, 2014 @09:44AM (#8814738)
I don't exactly know why I am responding to the comment with the snidest tone... but it's not just a software problem. Everyone has to budget their money, and a 13 month year makes that easier. Businesses spend huge sums of money trying to reconcile their finances because of our current calendar. The amount of human effort wasted on looking up what day of the week something is, is monumental. Aside from inertia, our current calendar doesn't have much going for it. No, I have no delusion that we'd ever switch, but it doesn't mean that staying with the current calendar is actually a good idea.
Re:If you're using YYYY in your JVM service or %G in anythin... by chrismcb on Tuesday December 30, 2014 @02:22AM (#8813697)
Right, so instead of having a solvable problem with today's tools, let's throw in a new problem that needs new tools to be solved.
Re:If you're using YYYY in your JVM service or %G in anythin... by jxf on Monday December 29, 2014 @03:47PM (#8811683)
It'd be pretty tough to retrofit "a day that doesn't belong to any month" into existing computer systems.
Re:If you're using YYYY in your JVM service or %G in anythin... by saalweachter on Monday December 29, 2014 @05:23PM (#8812149)
Yes, but ... most existing computer systems are subtly broken for date/time in different ways anyway. Leap days, leap seconds, daylight savings shifts, timezones in general, the above mentioned "year of the week". You'd be substituting a certain number of "this is subtly broken" bugs for a certain number of "this is obviously not implemented correctly" bugs.
Re:If you're using YYYY in your JVM service or %G in anythin... by bcj on Monday December 29, 2014 @05:53PM (#8812270)
You might enjoy reading up on the French Republican Calendar (https://en.wikipedia.org/wiki/French_Republican_Calendar) then, and see what could have been.
Re:If you're using YYYY in your JVM service or %G in anythin... by nirvdrum on Monday December 29, 2014 @12:02PM (#8810582)
Every year has more than 26 weeks ;-) But to your point, I suspect that's why a lot of companies have switched to semi-monthly payroll. It's always 24 pay periods but the pay date itself can shift.
Re:If you're using YYYY in your JVM service or %G in anythin... by danielweber on Monday December 29, 2014 @12:59PM (#8810891)
English is weird. I meant "it's not true that there are 26 pay periods every year, because years have more than 52 weeks, which means there must be a 'leap pay-period'" every once in a while." But your interpretation was entirely valid based on the way I typed mine.
Re:If you're using YYYY in your JVM service or %G in anythin... by brlewis on Monday December 29, 2014 @01:35PM (#8811067)
I think the gp was referring to "years having fractionally more than 26 weeks".
Re:If you're using YYYY in your JVM service or %G in anythin... by danielweber on Monday December 29, 2014 @01:41PM (#8811099)
oops!
Re:If you're using YYYY in your JVM service or %G in anythin... by paulschreiber on Monday December 29, 2014 @02:20PM (#8811302)
California law requires that you be paid every two weeks.
Re:If you're using YYYY in your JVM service or %G in anythin... by jlmorton on Monday December 29, 2014 @02:31PM (#8811360)
Nope - It requires that you be paid at least twice per month.

http://www.dir.ca.gov/dlse/faq_paydays.htm

Re:If you're using YYYY in your JVM service or %G in anythin... by jsprogrammer on Monday December 29, 2014 @03:39PM (#8811650)
My wife works for a UC school and they post-pay on the 1st of each month. I've skimmed the article you've posted and it would seem that such an arrangement is not allowed.

Do you know how they get away with this, or have any other insight?

Re:If you're using YYYY in your JVM service or %G in anythin... by porpoisemonkey on Monday December 29, 2014 @05:03PM (#8812051)
Teachers are exempt from this rule.

From here: http://www.dir.ca.gov/dlse/Glossary.asp?Button1=P#profession...

professional exemption

A person employed in a professional capacity means any employee who meets all of the following requirements:

Who is licensed or certified by the State of California and is primarily engaged in the practice of one of the following recognized professions: law, medicine, dentistry, optometry, architecture, engineering, teaching, or accounting, or

Re:If you're using YYYY in your JVM service or %G in anythin... by tlrobinson on Monday December 29, 2014 @07:45PM (#8812705)
Why are those professions exempt?
Re:If you're using YYYY in your JVM service or %G in anythin... by porpoisemonkey on Tuesday December 30, 2014 @12:45PM (#8815669)
Honestly I don't know. The objective answer to your question is because that's how exempt professions is defined for the law.

If I had to hazard a guess but I would suspect it's because people in those professions are expected to be salary. Salary is easier to budget out in longer increments as the base pay amounts per pay period typically don't vary. (annual salary / pay periods = pay amount)

Re:If you're using YYYY in your JVM service or %G in anythin... by brianwawok on Monday December 29, 2014 @04:20PM (#8811856)
Schools are sometimes treated more like a government entity and exempt from certain rules and taxes like FICA, right?

That is my only guess...

Re:If you're using YYYY in your JVM service or %G in anythin... by chrismcb on Tuesday December 30, 2014 @02:20AM (#8813690)
Even in years that have fractionally more than 52 weeks, there is still only 26 pay periods. You only get 27 pay periods when the fractions add up, which may or nit be in a leap year.