Method | Description | |
---|---|---|
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
|
Method | Description | |
---|---|---|
FormatUtil ( ) : System | ||
PositiveTimeSpan ( System.TimeSpan timeSpan ) : string |
public static SizeInBytes ( long sizeInBytes ) : string | ||
sizeInBytes | long | The size in bytes. |
return | string |
public static TimeOffset ( System.DateTime localTime ) : string | ||
localTime | System.DateTime | The local time. |
return | string |
public static TimeOffsetUtc ( System.DateTime dateInUtc ) : string | ||
dateInUtc | System.DateTime | The date in UTC. |
return | string |
public static TimeSpan ( System.TimeSpan offset ) : string | ||
offset | System.TimeSpan | The offset. |
return | string |