Click or drag to resize

PdfDocumentMetadataToSecondsPrecision Method

Round a DateTime down to the nearest second i.e. strip off Milliseconds

Namespace:  Atalasoft.PdfDoc
Assembly:  Atalasoft.PdfDoc (in Atalasoft.PdfDoc.dll) Version: 11.0.0.0.0.297 (.NET 4.5.2, x86)
Syntax
public static DateTime ToSecondsPrecision(
	DateTime t
)

Parameters

t
Type: SystemDateTime
arbitrary DateTime

Return Value

Type: DateTime
input value but with Millisecond set to 0
See Also