Overview

Namespaces

  • webfilesframework
    • codegeneration
      • general
      • php
    • core
      • datastore
        • functions
          • filter
          • sorting
        • types
          • database
            • resultHandler
          • directory
          • googlecalendar
          • mail
          • remote
      • datasystem
        • database
        • file
          • format
            • media
              • image
                • handler
          • system
            • dropbox
      • datatypes
        • time
      • time
    • io
      • form
        • formItem
        • validation
        • webfile
      • request

Classes

  • MTimestampHelper
  • Overview
  • Namespace
  • Class

Class MTimestampHelper

description

Namespace: webfilesframework\core\datatypes\time
Author: Sebastian Monzel < mail@sebastianmonzel.de >
Since: 0.1.7
Located at core/datatypes/time/MTimestampHelper.php
Methods summary
public static
# getMonthStart( $month = -1, $year = -1 )
public static false|integer
# getMonthEnd( integer $month = -1, integer $year = -1 )

returns a timestamp of the end of a month

returns a timestamp of the end of a month

Parameters

$month
$year

Returns

false|integer
public static float
# getHours( duration $duration )

returns the count of hours in the given duration

returns the count of hours in the given duration

Parameters

$duration
in seconds

Returns

float
public static float
# getMinutes( duration $duration )

returns the count of minutes in the given duration

returns the count of minutes in the given duration

Parameters

$duration
in seconds

Returns

float
public static false|string
# getDay( $timestamp, boolean $leadingZero = true )

returns the number of the day

returns the number of the day

Parameters

$timestamp
$leadingZero

Returns

false|string
public static false|string
# getMonth( $timestamp, boolean $leadingZero = true )

returns the number of the month

returns the number of the month

Parameters

$timestamp
$leadingZero

Returns

false|string
public static false|string
# getYear( $timestamp )

returns the number of the year

returns the number of the year

Parameters

$timestamp

Returns

false|string
public static false|string
# getHour( $timestamp )

returns the number of the year

returns the number of the year

Parameters

$timestamp

Returns

false|string
public static false|string
# getMinute( $timestamp )

returns the number of the year

returns the number of the year

Parameters

$timestamp

Returns

false|string
public static string
# getFormatedDate( duration $timestamp )

returns the given timestamp in a manner like

returns the given timestamp in a manner like

Parameters

$timestamp
in seconds

Returns

string
public static string
# getFormatedTime( duration $timestamp )

returns the count of minutes in the given duration

returns the count of minutes in the given duration

Parameters

$timestamp
in seconds

Returns

string
public static string
# getWeekdayName( integer $identifier )

Parameters

$identifier
weekday identifier between 0 and 6.

Returns

string
the german name of the given weekday identifier.

Throws

webfilesframework\MWebfilesFrameworkException
public static
# getDojoFormatedDate( $timestamp )
public static
# getDojoFormatedTime( $timestamp )
public static
# getTimestampFromDojoFromatedDate( $dojoDate )
public static
# getTimestampFromDojoFromatedDateTime( $dojoDate, $dojoTime )
public static
# getTimestampFromExifFormatedDateTime( $exifDateTime )

Converts a time from exif (f.e. '2016:12:22 14:49:07') to unix timestamp.

Converts a time from exif (f.e. '2016:12:22 14:49:07') to unix timestamp.

API documentation generated by ApiGen