FireSync API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kStatus kNode_SetDateTime ( kNode  node,
kDateTime  dateTime 
)

Adjusts the date-time value that will be reported by the node.

At present, nodes do not support persistent calendar date-time storage. However, calendar date-time awareness can be beneficial in some circumstances, e.g., for persistent health logging. This method enables time-aware clients to explicitly set the current node date-time.

After setting the node date-time with this method, the node will adjust its internal date-time representation such that future date-time values reported by the node are relative to the new baseline established with this method.

This method has no effect on node thread-scheduling (e.g., will not affect any active timeouts).

Parameters
nodekNode object.
dateTimeCurrent calendar date-time.
Returns
Operation status.