FileAccess Orion

MyDateTime extends DateTime
in package

Class MyDateTime

Table of Contents

__construct()  : mixed
MyDateTime constructor.
addMonths()  : $this
Add real calendar months to this date time
DayOfWeek()  : string
Get day of week of this instance
getStartOfWeekDate()  : MyDateTime|null
Get the start date of this week
roundMinutes()  : $this

Methods

__construct()

MyDateTime constructor.

public __construct([string $time = 'now' ][, DateTimeZone|null $tz = null ]) : mixed
Parameters
$time : string = 'now'

Consumable by str to time, seconds will be added on the fly

$tz : DateTimeZone|null = null
Tags
throws
Exception
Return values
mixed

addMonths()

Add real calendar months to this date time

public addMonths(int $months) : $this
Parameters
$months : int
Return values
$this

DayOfWeek()

Get day of week of this instance

public DayOfWeek() : string
Return values
string

roundMinutes()

public roundMinutes([int $target = 15 ]) : $this
Parameters
$target : int = 15
Return values
$this

Search results