From 496edf245ef7be99fe03006b577f10b888ed8d39 Mon Sep 17 00:00:00 2001 From: chatty Date: Tue, 27 Jul 1993 14:06:45 +0000 Subject: Added AsString --- utils/Time.cc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'utils/Time.cc') diff --git a/utils/Time.cc b/utils/Time.cc index 6780178..d51f65d 100644 --- a/utils/Time.cc +++ b/utils/Time.cc @@ -49,6 +49,13 @@ CcuTimeStamp :: operator Millisecond () const } #endif /* DOC */ +const char* +CcuTimeStamp :: AsString () const +{ + time_t t = Value / 1000; + return ctime (&t); +} + /*?class CcuTime The class \typ{CcuTime} provides a simple way of manipulating real-time. Objects of this class are used like integer variables whose value would change with time. -- cgit v1.1