Modifier

Partager via


DateTimeExtensions Class

Definition

DateTime Extensions.

public ref class DateTimeExtensions abstract sealed
public static class DateTimeExtensions
type DateTimeExtensions = class
Public Module DateTimeExtensions
Inheritance
DateTimeExtensions

Methods

GetRelativeTime(DateTime)

Gets string literal for relative time from now since the DateTime provided. String output is in most appropriate "x time units ago" Example: If DateTime provided is 30 seconds before now, then result will be "30 seconds ago"

Applies to