C# Class Telegram.Utils.Formatters

Datei anzeigen Open project: naphaso/kilogram

Public Methods

Method Description
FormatDayWasOnline ( System.DateTime time ) : string
FormatDayWasOnlineUnix ( int seconds ) : string
FormatDialogDateTimestamp ( System.DateTime time ) : string
FormatDialogDateTimestampUnix ( int seconds ) : string
FormatPhoneNumber ( string phone ) : string
FormatPhoneNumberWithCulture ( string phone, CultureInfo culture ) : string
FormatTimeWasOnline ( System.DateTime time ) : string
FormatTimeWasOnlineUnix ( int seconds ) : string

Method Details

FormatDayWasOnline() public static method

public static FormatDayWasOnline ( System.DateTime time ) : string
time System.DateTime
return string

FormatDayWasOnlineUnix() public static method

public static FormatDayWasOnlineUnix ( int seconds ) : string
seconds int
return string

FormatDialogDateTimestamp() public static method

public static FormatDialogDateTimestamp ( System.DateTime time ) : string
time System.DateTime
return string

FormatDialogDateTimestampUnix() public static method

public static FormatDialogDateTimestampUnix ( int seconds ) : string
seconds int
return string

FormatPhoneNumber() public static method

public static FormatPhoneNumber ( string phone ) : string
phone string
return string

FormatPhoneNumberWithCulture() public static method

public static FormatPhoneNumberWithCulture ( string phone, CultureInfo culture ) : string
phone string
culture System.Globalization.CultureInfo
return string

FormatTimeWasOnline() public static method

public static FormatTimeWasOnline ( System.DateTime time ) : string
time System.DateTime
return string

FormatTimeWasOnlineUnix() public static method

public static FormatTimeWasOnlineUnix ( int seconds ) : string
seconds int
return string