Selen

DateTime
in package

日付に関する処理を提供するクラス

Table of Contents

Properties

$record  : Record

Methods

__construct()  : mixed
parseInt()  : DateTime
タイムスタンプからインスタンスを生成します
parseStr()  : DateTime
日付文字列からインスタンスを生成します

Properties

Methods

__construct()

public __construct(Record $dateTimeRecord) : mixed
Parameters
$dateTimeRecord : Record

parseInt()

タイムスタンプからインスタンスを生成します

public static parseInt(int $timestamp) : DateTime
Parameters
$timestamp : int

タイムスタンプ

Return values
DateTime

成功した場合はインスタンスを返します

parseStr()

日付文字列からインスタンスを生成します

public static parseStr(string $parseFormat, string $dateTime) : DateTime
Parameters
$parseFormat : string

パース文字列

$dateTime : string

日付文字列

Return values
DateTime

成功した場合はインスタンスを返します


        
On this page

Search results