diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-04-12 02:16:46 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-04-12 02:16:46 +0800 |
commit | f5544ffb3a0703d6cbd0eacc42ab3be2e8ca45f3 (patch) | |
tree | 9d385de5eeaf19e79f1507e30995e00caf3f6b15 | |
parent | e962dedc874695bc349c18697d5b5619dd67305f (diff) | |
download | pttbbs-f5544ffb3a0703d6cbd0eacc42ab3be2e8ca45f3.tar pttbbs-f5544ffb3a0703d6cbd0eacc42ab3be2e8ca45f3.tar.gz pttbbs-f5544ffb3a0703d6cbd0eacc42ab3be2e8ca45f3.tar.bz2 pttbbs-f5544ffb3a0703d6cbd0eacc42ab3be2e8ca45f3.tar.lz pttbbs-f5544ffb3a0703d6cbd0eacc42ab3be2e8ca45f3.tar.xz pttbbs-f5544ffb3a0703d6cbd0eacc42ab3be2e8ca45f3.tar.zst pttbbs-f5544ffb3a0703d6cbd0eacc42ab3be2e8ca45f3.zip |
- add Now(), m3 flavor time format API.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4134 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | common/bbs/Makefile | 2 | ||||
-rw-r--r-- | common/bbs/log.c | 3 | ||||
-rw-r--r-- | common/bbs/time.c | 11 |
3 files changed, 15 insertions, 1 deletions
diff --git a/common/bbs/Makefile b/common/bbs/Makefile index e3aae6e0..bb99c29f 100644 --- a/common/bbs/Makefile +++ b/common/bbs/Makefile @@ -4,7 +4,7 @@ SRCROOT= ../.. CFLAGS+= -I$(SRCROOT)/include -OBJS= log.o file.o money.o names.o path.o string.o +OBJS= log.o file.o money.o names.o path.o time.o string.o # record.o TARGET= libcmbbs.a diff --git a/common/bbs/log.c b/common/bbs/log.c index e69de29b..eef9d807 100644 --- a/common/bbs/log.c +++ b/common/bbs/log.c @@ -0,0 +1,3 @@ +#include "bbs.h" +#include "cmbbs.h" + diff --git a/common/bbs/time.c b/common/bbs/time.c new file mode 100644 index 00000000..6ea402b8 --- /dev/null +++ b/common/bbs/time.c @@ -0,0 +1,11 @@ +#include "bbs.h" +#include "cmsys.h" + +// Now() is a maple3 flavor API. +const char * +Now() +{ + syncnow(); + return Cdate(&now); +} + |