[ create a new paste ] login | about

Link: http://codepad.org/H2QJSFsz    [ raw code | output | fork ]

PHP, pasted on Dec 11:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?
   interface IDateTimeProvider
    {
        public function date($format);
        public function time();
    }

    class DateTimeProvider implements IDateTimeProvider
    {
        public function date($format)
        {
            return date($format);
        }
        public function time()
        {
            return time();
        }
    }

$dtp = new DateTimeProvider();
echo $dtp->time();


Output:
1
1355207626


Create a new paste based on this one


Comments: