basic API docs
[awesomized/ext-ion] / docs / html / ion / Timestamp / __construct.html
1 <!doctype html>
2 <html>
3 <head>
4 <meta charset="utf-8">
5 <title>
6 Timestamp::__construct -
7 mdref
8 </title>
9 <meta name="viewport" content="width=1200, initial-scale=0.5">
10 <base href="/">
11 <meta http-equiv="Content-Location" content="/ion/Timestamp/__construct">
12 <link rel="stylesheet" href="index.css">
13
14 <link href="https://fonts.googleapis.com/css?family=Inconsolata&amp;subset=latin-ext" rel="stylesheet">
15 <script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
16 <link rel="shortcut icon" href="/favicon.ico">
17 </head>
18 <body>
19 <div class="page">
20
21 <div class="sidebar">
22
23 <div class="edit">
24 <a href="./ion/Timestamp/__construct">Edit</a>
25 </div>
26
27
28 <ul>
29 <li>&lsh; <a href="./">Home</a>
30
31 <ul>
32 <li>
33
34 &uarr; <a href="./ion">
35 ion
36 </a>
37 <ul>
38 <li>
39
40 &uarr; <a href="./ion/Timestamp">
41 Timestamp
42 </a>
43 <ul>
44 <li>
45
46 &circlearrowright; <strong><a href="./ion/Timestamp/__construct">Timestamp::__construct</a></strong>
47
48
49
50 </ul>
51
52 <li>&ldsh; <a href="./ion/Timestamp/Format">Format</a></li>
53
54 <li>&ldsh; <a href="./ion/Timestamp/Precision">Precision</a></li>
55
56 </ul>
57
58 </li>
59 </ul>
60
61 </li>
62 </ul>
63 </div>
64
65 <h1>void ion\Timestamp::__construct(ion\Timestamp\Precision|int $precision, [ion\Timestamp\Format|string|null $format = NULL, [?string $datetime = NULL, [?DateTimeZone $timezone = NULL]]])</h1>
66 <p>Create a new ION timestamp.</p>
67 <h2>Params:<a id="Params:" href="#Params:" class="permalink" aria-hidden="true" title="">#</a></h2>
68 <ul>
69 <li>ion\Timestamp\Precision|int $precision<br />
70 The timestamp's precision. See ion\Timestamp\Precision.</li>
71 <li>Optional ion\Timestamp\Format|string|null $format = NULL<br />
72 The timestamp's format. See ion\Timestamp\Format.</li>
73 <li>Optional ?string $datetime = NULL<br />
74 The timestamp's value.</li>
75 <li>Optional ?DateTimeZone $timezone = NULL<br />
76 The timestamp's timezone.</li>
77 </ul>
78
79
80
81
82 <div id="disqus_thread"><button id="disqus_activator">Show <span> </span> Comment(s)</button></div>
83 <script>
84 var disqus_shortname = 'mdref';
85 var disqus_identifier = 'ion/Timestamp/__construct';
86 </script>
87
88 <footer>
89
90 <ul>
91 <li><a href="https://github.com/m6w6/mdref">mdref-v2.0
92 </a></li>
93 <li><a href="LICENSE">&copy; 2013-2022 All rights reserved.</a></li>
94 <li>
95 </li>
96 </ul>
97
98 </footer>
99
100 <script src="index.js"></script>
101
102 </div>
103 </body>
104 </html>