mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
Implement +[NSDate now]
This commit is contained in:
parent
648f3e2dfb
commit
ca1d07dcf2
2 changed files with 13 additions and 0 deletions
|
@ -164,6 +164,12 @@ otherTime(NSDate* other)
|
|||
initWithTimeIntervalSinceReferenceDate: GSPrivateTimeNow()]);
|
||||
}
|
||||
|
||||
+ (instancetype) now
|
||||
{
|
||||
return AUTORELEASE([[self allocWithZone: NSDefaultMallocZone()]
|
||||
initWithTimeIntervalSinceReferenceDate: GSPrivateTimeNow()]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns an autoreleased instance representing the date and time given
|
||||
* by string. The value of string may be a 'natural' specification as
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue