C# Class MetroThing.Core.Helpers.StringHelper

Mostra file Open project: kreischweide/metrothing

Public Methods

Method Description
ConvertByteSizeToHumanReadable ( long byteCount ) : string
ConvertLongToHumanReadableWithUnitPrefix ( long number ) : string
TimeAgo ( System.DateTime dateTime, int averageSecondsJustNow = 10 ) : string

Private Methods

Method Description
ConvertBaseToHumanReadable ( IReadOnlyList scale, int steps, long count ) : string

Method Details

ConvertByteSizeToHumanReadable() public static method

public static ConvertByteSizeToHumanReadable ( long byteCount ) : string
byteCount long
return string

ConvertLongToHumanReadableWithUnitPrefix() public static method

public static ConvertLongToHumanReadableWithUnitPrefix ( long number ) : string
number long
return string

TimeAgo() public static method

public static TimeAgo ( System.DateTime dateTime, int averageSecondsJustNow = 10 ) : string
dateTime System.DateTime
averageSecondsJustNow int
return string