Documentation

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
access

public

static
Return values
string

formatHumanReadableTime()

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
Tags
access

public

static
throws
Exception
Return values
string

        
On this page

Search results