mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
Masses of fixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@5474 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
b35bbfad7e
commit
22f09ca318
8 changed files with 666 additions and 483 deletions
|
@ -1115,18 +1115,6 @@ GSTimeNow()
|
|||
|
||||
// Adding and getting intervals
|
||||
|
||||
- (id) addTimeInterval: (NSTimeInterval)seconds
|
||||
{
|
||||
/* xxx We need to check for overflow? */
|
||||
id newObj = [[self class] dateWithTimeIntervalSinceReferenceDate:
|
||||
_seconds_since_ref + seconds];
|
||||
|
||||
if ([self isKindOfClass: [NSCalendarDate class]])
|
||||
[newObj setTimeZone: [(NSCalendarDate *) self timeZoneDetail]];
|
||||
|
||||
return newObj;
|
||||
}
|
||||
|
||||
- (NSTimeInterval) timeIntervalSince1970
|
||||
{
|
||||
return _seconds_since_ref - UNIX_REFERENCE_INTERVAL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue