Table of Contents

Class RelativeTime

Namespace
McServerLauncher.ViewModels
Assembly
McServerLauncher.dll

"Hace 3 h", and the other ways of saying how long ago something was.

public static class RelativeTime
Inheritance
RelativeTime
Inherited Members

Methods

Ago(DateTime, DateTime)

How long ago utc was, in words; a date once it is weeks old.

public static string Ago(DateTime utc, DateTime nowUtc)

Parameters

utc DateTime
nowUtc DateTime

Returns

string

Duration(TimeSpan)

A length of time played: "12 h 5 min", or "5 min".

public static string Duration(TimeSpan span)

Parameters

span TimeSpan

Returns

string

Exact(DateTime)

A date and time in the user's own format.

public static string Exact(DateTime utc)

Parameters

utc DateTime

Returns

string