Click or drag to resize

ConversionsToPositiveFileTime Method (DateTimeOffset)

Converts a DateTimeOffset to an always positive or zero file time. It's always a valid Win32 FILETIME.

Namespace:  callback.ShellBoost.Core.Utilities
Assembly:  callback.CBFSShell (in callback.CBFSShell.dll) Version: 22.0.0.0
Syntax
C#
public static long ToPositiveFileTime(
	this DateTimeOffset dt
)

Parameters

dt
Type: SystemDateTimeOffset
The DateTimeOffset.

Return Value

Type: Int64
An UTC file time expressed as a 64-bit integer greater than or equal to 0.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type DateTimeOffset. 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).
See Also