CMS Made Simple API

CMSMS

Table of Contents

Namespaces

AdminAlerts
Async
Database
Layout

Interfaces

FilePickerInterface
Define an interface for modules that provide filepicker functionality.

Classes

FilePickerProfile
A simple class that defines a profile of information used by the filepicker to indicate how it should behave and what functionality should be provided.
FileType
A simple abstract class that defines constants for numerous file types.
FileTypeHelper
A class to provide utilities for manipulating files by their type.
HookManager
A class to manage hooks, and to call hook handlers.

Functions

strftime()  : string
Locale-formatted strftime using \IntlDateFormatter (PHP 8.1 compatible) This provides a cross-platform alternative to strftime() for when it will be removed from PHP.

Functions

strftime()

Locale-formatted strftime using \IntlDateFormatter (PHP 8.1 compatible) This provides a cross-platform alternative to strftime() for when it will be removed from PHP.

strftime(string $format[, null $timestamp = NULL ][, string|null $locale = NULL ]) : string

Note that output can be slightly different between libc sprintf and this function as it is using ICU.

Original use (a):

Usage: use function \PHP81_BC\strftime; echo strftime('%A %e %B %Y %X', new \DateTime('2021-09-28 00:00:00'), 'fr_FR');

Original use (b): \setlocale('fr_FR.UTF-8', LC_TIME); echo \strftime('%A %e %B %Y %X', strtotime('2021-09-28 00:00:00'));

Parameters
$format : string

Date format

$timestamp : null = NULL

Timestamp

$locale : string|null = NULL
Tags
author

BohwaZ https://bohwaz.net/

Return values
string

        
On this page

Search results