[Openais] SA_TIME_UNKNOWN does not work properly in conjunction with ais_time_str

Hegde, Ramesh (STSD) rameshh at hp.com
Wed Mar 21 23:15:13 PDT 2007

I am not able to print the correct value of the Event Time in case I set
the event time to SA_TIME_UNKNOWN. I use function ais_time_str to print
the event time.

The function always prints "Sat Jan 27 16:20:44 1990"
You can find this function in subscription.c test program. 
char *ais_time_str(SaTimeT time)
        time_t t;
        t = time / 1000000000ULL;
        strcpy(time_buf, ctime(&t));
        return time_buf;

Let me know if there is any changes required in this function?
Ramesh Hegde 

Software Engineer, Hewlett Packard
System Technology and Software Division 
3, Edward Road, 
Bangalore - 560 052. India. 
+91 80 2205 3838 - Direct 
+91 80 2235 3604 - Fax 
Jabber Id : rameshh at jabber.hp.com 
+hp = everything is possible
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.linux-foundation.org/pipermail/openais/attachments/20070322/d401b061/attachment-0001.htm

More information about the Openais mailing list