BEHealthKit 1.11
A HealthKit plugin for Unity
Loading...
Searching...
No Matches
Static Public Attributes | Static Public Member Functions | List of all members
BeliefEngine.HealthKit.DateTimeBridge Class Reference

A small helper class to bridge dates between C# and Objective-C.

Static Public Attributes

static string dateBridgeFormat = "yyyy-MM-ddTHH:mm:ss"
 all timestamps from Objective-C should be in this format."
 

Static Public Member Functions

static string DateToString (DateTimeOffset date)
 Convert a DateTimeOffset to a string datestamp to be passed to Objective-C.
 
static DateTimeOffset DateFromString (string stamp)
 Convert a string timestamp from Objective-C to a DateTimeOffset.
 

Member Function Documentation

◆ DateFromString()

static DateTimeOffset BeliefEngine.HealthKit.DateTimeBridge.DateFromString ( string stamp)
inlinestatic
Parameters
stampthe timestamp to convert.

◆ DateToString()

static string BeliefEngine.HealthKit.DateTimeBridge.DateToString ( DateTimeOffset date)
inlinestatic
Parameters
datethe date to convert.