mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-25 01:31:08 +00:00
quarter calculation by reussandras@gmail.com
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36368 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
e2d806f6a3
commit
56fe24c831
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2012-03-16 reussandras@gmail.com
|
||||||
|
|
||||||
|
* base/Source/NSCalendar.m:
|
||||||
|
Add simple quarter calculation.
|
||||||
|
|
||||||
2012-03-16 Richard Frith-Macdonald <rfm@gnu.org>
|
2012-03-16 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
* NSTimeZones/NSTimeZones.tar: Update timezone information
|
* NSTimeZones/NSTimeZones.tar: Update timezone information
|
||||||
|
|
|
@ -68,7 +68,8 @@ static UCalendarDateFields _NSCalendarUnitToDateField (NSCalendarUnit unit)
|
||||||
// FIXME: Is this right???
|
// FIXME: Is this right???
|
||||||
return UCAL_DAY_OF_WEEK_IN_MONTH;
|
return UCAL_DAY_OF_WEEK_IN_MONTH;
|
||||||
// ICU doesn't include a quarter DateField...
|
// ICU doesn't include a quarter DateField...
|
||||||
|
if (unit & NSQuarterCalendarUnit)
|
||||||
|
return (UCAL_MONTH + 2) / 3;
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
#endif /* GS_USE_ICU */
|
#endif /* GS_USE_ICU */
|
||||||
|
|
Loading…
Reference in a new issue