Partager via


PrimitiveExtensions.ToUnixEpochTime Method

Namespace:  Microsoft.VisualStudio.Services.Common
Assembly:  Microsoft.VisualStudio.Services.Common (in Microsoft.VisualStudio.Services.Common.dll)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function ToUnixEpochTime ( _
    dateTime As DateTime _
) As Long
public static long ToUnixEpochTime(
    this DateTime dateTime
)
[ExtensionAttribute]
public:
static long long ToUnixEpochTime(
    DateTime dateTime
)
static member ToUnixEpochTime : 
        dateTime:DateTime -> int64
public static function ToUnixEpochTime(
    dateTime : DateTime
) : long

Parameters

Return Value

Type: System.Int64

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type DateTime. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

.NET Framework Security

See Also

Reference

PrimitiveExtensions Class

Microsoft.VisualStudio.Services.Common Namespace