DataStore Library: 7 Timestamping

Up: GEOS SDK TechDocs| Up | Prev: 6 Enumeration | Next: 8 Synchronization
DataStoreGetTimeStamp(), DataStoreSetTimeStamp()

Record timestamping is important for synchronization and reconciliation of data between devices; between a portable device and a desktop PC, for example. Passing the FT_TIMESTAMP flag when creating a new datastore makes the first field a timestamp field. The DataStore Manager updates this field when the record has been modified.

You can read the data in the timestamp field by calling DataStoreGetField() and passing zero for the FieldID parameter and NULL for field name.

To retrieve the time and date a datastore was last changed, call DataStoreGetTimeStamp() . To modify a datastore's timestamp manually, call DataStoreSetTimeStamp() .


Up: GEOS SDK TechDocs| Up | Prev: 6 Enumeration | Next: 8 Synchronization