DataTimes::format()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 0
dl 0
loc 2
rs 10
c 1
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
/**
3
 * KNUT7 K7F (https://marciozebedeu.com/)
4
 * KNUT7 K7F (tm) : Rapid Development Framework (https://marciozebedeu.com/)
5
 *
6
 * Licensed under The MIT License
7
 * For full copyright and license information, please see the LICENSE.txt
8
 * Redistributions of files must retain the above copyright notice.
9
 *
10
 * @link      https://github.com/knut7/framework/ for the canonical source repository
11
 * @copyright (c) 2015.  KNUT7  Software Technologies AO Inc. (https://marciozebedeu.com/)
12
 * @license   https://marciozebedeu.com/license/new-bsd New BSD License
13
 * @author    Marcio Zebedeu - [email protected]
14
 * @version   1.0.2
15
 */
16
17
namespace Ballybran\Helpers\Time;
18
19
20
use DateInterval;
21
use DateTimeInterface;
22
use DateTimeZone;
23
24
class DataTimes implements DateTimeInterface
25
{
26
27
    /**
28
     * (PHP 5 &gt;=5.5.0)<br/>
29
     * Returns the difference between two DateTime objects
30
     * @link http://www.php.net/manual/en/datetime.diff.php
31
     * @param DateTimeInterface $datetime2 <p>The date to compare to.</p>
32
     * @param bool $absolute <p>Should the interval be forced to be positive?</p>
33
     * @return DateInterval
34
     * The http://www.php.net/manual/en/class.dateinterval.php DateInterval} object representing the
35
     * difference between the two dates or <b>FALSE</b> on failure.
36
     *
37
     */
38
    public function diff($datetime2, $absolute = false)
39
    {
40
    }
41
42
    /**
43
     * (PHP 5 &gt;=5.5.0)<br/>
44
     * Returns date formatted according to given format
45
     * @link http://www.php.net/manual/en/datetime.format.php
46
     * @param string $format <p>
47
     * Format accepted by  {@link http://www.php.net/manual/en/function.date.php date()}.
48
     * </p>
49
     * @return string
50
     * Returns the formatted date string on success or <b>FALSE</b> on failure.
51
     *
52
     */
53
    public function format($format)
54
    {
55
        // TODO: Implement format() method.
56
    }
57
58
    /**
59
     * (PHP 5 &gt;=5.5.0)<br/>
60
     * Returns the timezone offset
61
     * @return int
62
     * Returns the timezone offset in seconds from UTC on success
63
     * or <b>FALSE</b> on failure.
64
     *
65
     */
66
    public function getOffset()
67
    {
68
        // TODO: Implement getOffset() method.
69
    }
70
71
    /**
72
     * (PHP 5 &gt;=5.5.0)<br/>
73
     * Gets the Unix timestamp
74
     * @return int
75
     * Returns the Unix timestamp representing the date.
76
     */
77
    public function getTimestamp()
78
    {
79
        // TODO: Implement getTimestamp() method.
80
    }
81
82
    /**
83
     * (PHP 5 &gt;=5.5.0)<br/>
84
     * Return time zone relative to given DateTime
85
     * @link http://www.php.net/manual/en/datetime.gettimezone.php
86
     * @return DateTimeZone
87
     * Returns a {@link http://www.php.net/manual/en/class.datetimezone.php DateTimeZone} object on success
88
     * or <b>FALSE</b> on failure.
89
     */
90
    public function getTimezone()
91
    {
92
        // TODO: Implement getTimezone() method.
93
    }
94
95
    /**
96
     * (PHP 5 &gt;=5.5.0)<br/>
97
     * The __wakeup handler
98
     * @link http://www.php.net/manual/en/datetime.wakeup.php
99
     * @return void Initializes a DateTime object.
100
     */
101
    public function __wakeup()
102
    {
103
        // TODO: Implement __wakeup() method.
104
    }
105
106
107
}