mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +00:00
([Time +initialize]): Comment out day/month name handling that depends
on old Collection heirarchy. ([Time +indexOfDayName:]): un-implemented. ([Time +nameOfDayIndex:]): Likewise. ([Time +indexOfMonthName:]): Likewise. ([Time +nameOfMonthIndex:]): Likewise. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1375 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
97eab7491a
commit
5b483ea611
1 changed files with 11 additions and 6 deletions
|
@ -1,5 +1,5 @@
|
||||||
/* Implementation of Objective-C Time object
|
/* Implementation of Objective-C Time object
|
||||||
Copyright (C) 1993,1994, 1995 Free Software Foundation, Inc.
|
Copyright (C) 1993,1994, 1995, 1996 Free Software Foundation, Inc.
|
||||||
|
|
||||||
Written by: R. Andrew McCallum <mccallum@gnu.ai.mit.edu>
|
Written by: R. Andrew McCallum <mccallum@gnu.ai.mit.edu>
|
||||||
Date: May 1993
|
Date: May 1993
|
||||||
|
@ -77,7 +77,7 @@ id monthNames;
|
||||||
{
|
{
|
||||||
if (self == [Time class])
|
if (self == [Time class])
|
||||||
{
|
{
|
||||||
[self setVersion:0]; /* beta release */
|
#if 0
|
||||||
/* We should substitute this with a way to make internationalization
|
/* We should substitute this with a way to make internationalization
|
||||||
more easy. */
|
more easy. */
|
||||||
/* Should these indeces start at 1? I think that would be ugly. */
|
/* Should these indeces start at 1? I think that would be ugly. */
|
||||||
|
@ -103,6 +103,7 @@ id monthNames;
|
||||||
[monthNames putElement:"October" atKey:9];
|
[monthNames putElement:"October" atKey:9];
|
||||||
[monthNames putElement:"November" atKey:10];
|
[monthNames putElement:"November" atKey:10];
|
||||||
[monthNames putElement:"December" atKey:11];
|
[monthNames putElement:"December" atKey:11];
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -175,22 +176,26 @@ id monthNames;
|
||||||
|
|
||||||
+ (unsigned) indexOfDayName: (const char *)dayName
|
+ (unsigned) indexOfDayName: (const char *)dayName
|
||||||
{
|
{
|
||||||
return [dayNames keyElementOfElement:(char *)dayName].unsigned_int_u;
|
[self notImplemented: _cmd];
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
+ (const char *) nameOfDayIndex: (unsigned)dayIndex
|
+ (const char *) nameOfDayIndex: (unsigned)dayIndex
|
||||||
{
|
{
|
||||||
return [dayNames elementAtKey:dayIndex].char_ptr_u;
|
[self notImplemented: _cmd];
|
||||||
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
+ (unsigned) indexOfMonthName: (const char *)monthName
|
+ (unsigned) indexOfMonthName: (const char *)monthName
|
||||||
{
|
{
|
||||||
return [monthNames keyElementOfElement:(char *)monthName].unsigned_int_u;
|
[self notImplemented: _cmd];
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
+ (const char *) nameOfMonthIndex: (unsigned)monthIndex
|
+ (const char *) nameOfMonthIndex: (unsigned)monthIndex
|
||||||
{
|
{
|
||||||
return [monthNames elementAtKey:monthIndex].char_ptr_u;
|
[self notImplemented: _cmd];
|
||||||
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
+ (unsigned) daysInMonthIndex: (unsigned)monthIndex forYear: (unsigned)year
|
+ (unsigned) daysInMonthIndex: (unsigned)monthIndex forYear: (unsigned)year
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue