summaryrefslogtreecommitdiffstats
path: root/common/bbs/time.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-04-12 02:16:46 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-04-12 02:16:46 +0800
commitf5544ffb3a0703d6cbd0eacc42ab3be2e8ca45f3 (patch)
tree9d385de5eeaf19e79f1507e30995e00caf3f6b15 /common/bbs/time.c
parente962dedc874695bc349c18697d5b5619dd67305f (diff)
downloadpttbbs-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
Diffstat (limited to 'common/bbs/time.c')
-rw-r--r--common/bbs/time.c11
1 files changed, 11 insertions, 0 deletions
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);
+}
+