63fac24d3d6cd5fdda9fb0b0ec017042c63734f1
[awesomized/ext-ion] / docs / v0.2 / 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 property="og:title" content="ion\Timestamp::__construct">
10 <meta name="viewport" content="width=1200, initial-scale=0.5">
11 <base href="/ext-ion/v0.2/">
12 <meta http-equiv="Content-Location" content="/ext-ion/v0.2/ion/Timestamp/__construct">
13 <link rel="stylesheet" href="index.css">
14
15 <link rel="shortcut icon" href="/ext-ion/v0.2/favicon.ico">
16 </head>
17 <body>
18 <div class="page">
19
20 <div class="sidebar">
21
22 <div class="edit">
23 <a href="https://github.com/awesomized/ext-ion/edit/master/ion.stub.php">Edit</a>
24 </div>
25
26
27 <ul>
28 <li>&lsh; <a href="./">Home</a>
29
30 <ul>
31 <li>
32
33 &uarr; <a href="./ion">
34 ion
35 </a>
36 <ul>
37 <li>
38
39 &uarr; <a href="./ion/Timestamp">
40 Timestamp
41 </a>
42 <ul>
43 <li>
44
45 &circlearrowright; <strong><a href="./ion/Timestamp/__construct">Timestamp::__construct</a></strong>
46
47
48
49 </ul>
50
51 <li>&ldsh; <a href="./ion/Timestamp/Format">Format</a></li>
52
53 <li>&ldsh; <a href="./ion/Timestamp/Precision">Precision</a></li>
54
55 </ul>
56
57 </li>
58 </ul>
59
60 </li>
61 </ul>
62 </div>
63 <meta charset="utf-8"><h1>
64 <a class="permalink" href="ion/Timestamp/__construct#">#</a><code><a href="https://php.net/manual/en/language.types.declarations#language.types.declarations.void">void</a></code> <a href="ion/Timestamp/__construct">ion\Timestamp::__construct</a>(<a href="ion/Timestamp/Precision">ion\Timestamp\Precision</a>|<code><a href="https://php.net/manual/en/language.types.integer">int</a></code> <span class="var">$precision</span>, [<a href="ion/Timestamp/Format">ion\Timestamp\Format</a>|<code><a href="https://php.net/manual/en/language.types.string">string</a></code>|<code><a href="https://php.net/manual/en/language.types.null">null</a></code> <span class="var">$format</span> = <code><a href="https://php.net/manual/en/language.types.null">NULL</a></code>, [?<code><a href="https://php.net/manual/en/language.types.string">string</a></code> <span class="var">$datetime</span> = <code><a href="https://php.net/manual/en/language.types.null">NULL</a></code>, [<code><a href="https://php.net/manual/en/class.datetimezone">DateTimeZone</a></code>|<code><a href="https://php.net/manual/en/language.types.string">string</a></code>|<code><a href="https://php.net/manual/en/language.types.null">null</a></code> <span class="var">$timezone</span> = <code><a href="https://php.net/manual/en/language.types.null">NULL</a></code>]]])</h1><p>Create a new ION timestamp.</p><h2 id="Params:">Params:<a class="permalink" href="ion/Timestamp/__construct#Params:">#</a>
65 </h2><ul>
66 <li>
67 <a href="ion/Timestamp/Precision">ion\Timestamp\Precision</a>|<code><a href="https://php.net/manual/en/language.types.integer">int</a></code> <span class="var" id="$precision">$precision<a class="permalink" href="ion/Timestamp/__construct#%24precision">#</a></span><br>
68 The timestamp's precision. See <a href="ion/Timestamp/Precision">ion\Timestamp\Precision</a>.</li>
69 <li>Optional <a href="ion/Timestamp/Format">ion\Timestamp\Format</a>|<code><a href="https://php.net/manual/en/language.types.string">string</a></code>|<code><a href="https://php.net/manual/en/language.types.null">null</a></code> <span class="var" id="$format">$format<a class="permalink" href="ion/Timestamp/__construct#%24format">#</a></span> = <code><a href="https://php.net/manual/en/language.types.null">NULL</a></code><br>
70 The timestamp's format. See <a href="ion/Timestamp/Format">ion\Timestamp\Format</a>.</li>
71 <li>Optional ?<code><a href="https://php.net/manual/en/language.types.string">string</a></code> <span class="var" id="$datetime">$datetime<a class="permalink" href="ion/Timestamp/__construct#%24datetime">#</a></span> = <code><a href="https://php.net/manual/en/language.types.null">NULL</a></code><br>
72 The timestamp's value.</li>
73 <li>Optional <code><a href="https://php.net/manual/en/class.datetimezone">DateTimeZone</a></code>|<code><a href="https://php.net/manual/en/language.types.string">string</a></code>|<code><a href="https://php.net/manual/en/language.types.null">null</a></code> <span class="var" id="$timezone">$timezone<a class="permalink" href="ion/Timestamp/__construct#%24timezone">#</a></span> = <code><a href="https://php.net/manual/en/language.types.null">NULL</a></code><br>
74 The timestamp's timezone.</li>
75 </ul>
76 <div class="comments">
77 <style>.giscus-frame {min-height: 16em;}</style>
78 <script>
79 function giscus_load(button) {
80 let script = document.createElement("script");
81 script.setAttribute("data-repo", 'awesomized/ext-ion');
82 script.setAttribute("data-category", 'Comments on Docs');
83 script.setAttribute("data-repo-id", 'R_kgDOGfXEXw');
84 script.setAttribute("data-category-id", 'DIC_kwDOGfXEX84CBHuf');
85 script.setAttribute("data-mapping", 'og:title');
86 script.setAttribute("data-input-position", 'bottom');
87 script.setAttribute("data-reactions-enabled", false);
88 script.setAttribute("data-theme", 'light');
89 script.setAttribute("data-lang", 'en');
90
91 script.src = "//giscus.app/client.js";
92 button.parentNode.replaceChild(script, button);
93 }
94 </script>
95 <button class="activator" onclick="giscus_load(this)">Show Comments from Github Discussions</button>
96
97 </div>
98
99 <footer>
100
101 <ul>
102 <li><a href="https://github.com/m6w6/mdref">mdref-v3.0
103 </a></li>
104 <li><a href="LICENSE">&copy; 2013-2022 All rights reserved.</a></li>
105 <li>
106 </li>
107 </ul>
108
109 </footer>
110
111 <script src="index.js" defer></script>
112
113 </div>
114 </body>
115 </html>