ES3.GetTimestamp

public static DateTime GetTimestamp(string filePath, ES3Settings settings)

Description

Gets the date and time a file was last updated in the UTC timezone.

If using this on iOS you will need to declare that you are using File timestamp APIs using code C617.1 as Sync relies on this functionality in order to check whether the file on the server is newer than the one stored locally. For more information please see Apple’s documentation.

Parameters

filePath [Optional] The relative or absolute path of the file we want to get the timestamp of.

settings

[Optional] The settings we want to use to override the default settings.

Returns

A DateTime representing the UTC time the file was last updated.

Examples

C#

JS