Hi All. I am developing a PIC 16F1829 based design which starts, stops and monitors a big diesel generator. An important function is that the module will timestamp an SD card module data output with a 'chunk' which will contain various realtime parameters derived from the acquisition of values using the analogue inputs and ccp counts from the PIC/generator. The SD card is removeable and can be inserted into a PC which will confirm various User uses of power by means of a spreadsheet.
My difficulty is how in C, to get a timestamp value with which I can prepend the 'chunk'. I know that VB has a standard way of presenting Date/Time in, possibly. a Long data value but I am becoming confused in how to move forward.
Chris