HI, I have the RTCC on my PIC32 running and all is well but I need to convert from POSIX to BCD to set the RTCC and from BDC to POSIX to TimeStamp out bound data packets. As this would be a frequent requirement for most systems that are communicating with networked devices I was surprised that PLIB has no functions to convert between POSIX TIME format and BCD. Have I overlooked something (I often do with Microchip Documentation) or has any one else created such functions and willing to share? I am not a LINIX or PC person so have never worked with POSIX TIME format. From what I can find in Google it is a 64Bit Int that counts seconds from midnight on the 1st Jan 1979. The PIC32 RTCC counts from 1st Jan 2000, so I need to add or subtract an offset in seconds and do the BCD conversions, But how are leap years catered for in that calculation? If no one has code for this I would really appreciate some pointers to help me create the functions. Cheers Chris --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .