Метод | Описание | |
---|---|---|
SizeInBytes ( long sizeInBytes ) : string |
Formats the size in bytes to a pretty string.
|
|
TimeOffset ( System.DateTime localTime ) : string |
Displays time passed since some event expressed, displaying it as '5 days ago'.
|
|
TimeOffsetUtc ( System.DateTime dateInUtc ) : string |
Displays time passed since (or remaining before) some event expressed in UTC, displaying it as '5 days ago'.
|
|
TimeSpan ( System.TimeSpan offset ) : string |
Formats time span nicely
|
Метод | Описание | |
---|---|---|
FormatUtil ( ) : System | ||
PositiveTimeSpan ( System.TimeSpan timeSpan ) : string |
public static SizeInBytes ( long sizeInBytes ) : string | ||
sizeInBytes | long | The size in bytes. |
Результат | string |
public static TimeOffset ( System.DateTime localTime ) : string | ||
localTime | System.DateTime | The local time. |
Результат | string |
public static TimeOffsetUtc ( System.DateTime dateInUtc ) : string | ||
dateInUtc | System.DateTime | The date in UTC. |
Результат | string |
public static TimeSpan ( System.TimeSpan offset ) : string | ||
offset | System.TimeSpan | The offset. |
Результат | string |