Share via


CurrentTimeUTC Property

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Gets the current UTC system time.

Namespace:  Microsoft.SPOT.Time
Assembly:  Microsoft.SPOT.Time (in Microsoft.SPOT.Time.dll)

Syntax

'Declaration
Public ReadOnly Property CurrentTimeUTC As DateTime
public DateTime CurrentTimeUTC { get; }
public:
property DateTime CurrentTimeUTC {
    DateTime get ();
}
member CurrentTimeUTC : DateTime with get
function get CurrentTimeUTC () : DateTime

Property Value

Type: System. . :: . .DateTime
The current UTC system time.

Remarks

This method enables getting the updated UTC time after an SNTP sync, without requiring an additional method call.

.NET Framework Security

See Also

Reference

TimeServiceStatus Class

Microsoft.SPOT.Time Namespace