Filter
in package
Filter
Provides data filtering functions.
Table of Contents
Methods
- formatHumanReadableSize() : string
- format a given number of bytes in IEC 80000-13:2008 notation (localized)
- formatHumanReadableTime() : string
- format a given time string into a human readable label (localized)
Methods
formatHumanReadableSize()
format a given number of bytes in IEC 80000-13:2008 notation (localized)
public
static formatHumanReadableSize(int $size) : string
Parameters
- $size : int
Tags
Return values
stringformatHumanReadableTime()
format a given time string into a human readable label (localized)
public
static formatHumanReadableTime(string $time) : string
accepts times in the format "[integer][time unit]"
Parameters
- $time : string