예제 #1
0
파일: IoDate.c 프로젝트: bomma/io
IO_METHOD(IoDate, now)
{
	/*doc Date now
	Sets the receiver to the current time. Returns self.
	*/

	Date_now(DATA(self));
	return self;
}
예제 #2
0
파일: Date.c 프로젝트: stevedekorte/basekit
Date *Date_new(void)
{
    Date *self = (Date *)io_calloc(1, sizeof(Date));
    Date_now(self);
    return self;
}