docs: de-uglify
[awesomized/ext-ion] / docs / v0.1 / ion / Timestamp.html
1 <!doctype html>
2 <html>
3 <head>
4 <meta charset="utf-8">
5 <title>
6 Timestamp -
7 mdref
8 </title>
9 <meta property="og:title" content="ion\Timestamp">
10 <meta name="viewport" content="width=1200, initial-scale=0.5">
11 <base href="/ext-ion/v0.1/">
12 <meta http-equiv="Content-Location" content="/ext-ion/v0.1/ion/Timestamp">
13 <link rel="stylesheet" href="index.css">
14
15 <link rel="shortcut icon" href="/ext-ion/v0.1/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 &circlearrowright; <strong><a href="./ion/Timestamp">Timestamp</a></strong>
40
41
42 <ul>
43
44 <li>
45 &rdsh; <a href="./ion/Timestamp/Format">Format</a>
46
47 </li>
48
49 <li>
50 &rdsh; <a href="./ion/Timestamp/Precision">Precision</a>
51
52 </li>
53
54 <li>
55 &rdsh; <a href="./ion/Timestamp/__construct">Timestamp::__construct</a>
56
57 </li>
58
59 </ul>
60
61
62 </ul>
63
64 <li>&ldsh; <a href="./ion/: Contributing">★ Contributing</a></li>
65
66 <li>&ldsh; <a href="./ion/: Security">★ Security</a></li>
67
68 <li>&ldsh; <a href="./ion/Catalog">Catalog</a></li>
69
70 <li>&ldsh; <a href="./ion/Decimal">Decimal</a></li>
71
72 <li>&ldsh; <a href="./ion/Exception">Exception</a></li>
73
74 <li>&ldsh; <a href="./ion/LOB">LOB</a></li>
75
76 <li>&ldsh; <a href="./ion/Reader">Reader</a></li>
77
78 <li>&ldsh; <a href="./ion/Serializer">Serializer</a></li>
79
80 <li>&ldsh; <a href="./ion/Symbol">Symbol</a></li>
81
82 <li>&ldsh; <a href="./ion/Type">Type</a></li>
83
84 <li>&ldsh; <a href="./ion/Unserializer">Unserializer</a></li>
85
86 <li>&ldsh; <a href="./ion/Writer">Writer</a></li>
87
88 <li>&ldsh; <a href="./ion/serialize">serialize</a></li>
89
90 <li>&ldsh; <a href="./ion/unserialize">unserialize</a></li>
91
92 </li>
93 </ul>
94
95 </li>
96 </ul>
97 </div>
98 <meta charset="utf-8"><h1>
99 <a class="permalink" href="ion/Timestamp#">#</a><em>class</em> <a href="ion/Timestamp">ion\Timestamp</a> <br>&nbsp;<em>extends</em> <code><a href="https://php.net/manual/en/class.datetime">DateTime</a></code> <br>&nbsp;<em>implements</em> <code><a href="https://php.net/manual/en/class.datetimeinterface">DateTimeInterface</a></code>, <code><a href="https://php.net/manual/en/class.stringable">Stringable</a></code>
100 </h1><p>An ION Timestamp.</p><p>See also <a href="https://amzn.github.io/ion-docs/docs/spec.html#timestamp">the ION spec's timestamp definition</a>, and <a href="https://php.net/date">PHP's date documentation</a>.</p><h2 id="Constants:">Constants:<a class="permalink" href="ion/Timestamp#Constants:">#</a>
101 </h2><p>None.</p><h2 id="Properties:">Properties:<a class="permalink" href="ion/Timestamp#Properties:">#</a>
102 </h2><ul>
103 <li>
104 <em>public</em> <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#%24precision">#</a></span><br>
105 The timestamp's precision. See <a href="ion/Timestamp/Precision">ion\Timestamp\Precision</a>.</li>
106 <li>
107 <em>public</em> <code><a href="https://php.net/manual/en/language.types.string">string</a></code> <span class="var" id="$format">$format<a class="permalink" href="ion/Timestamp#%24format">#</a></span> = <code><a href="https://php.net/manual/en/language.types.null">NULL</a></code><br>
108 The timestamp's format. See <a href="ion/Timestamp/Format">ion\Timestamp\Format</a>.</li>
109 </ul><h2 id="Functions:">Functions:<a class="permalink" href="ion/Timestamp#Functions:">#</a>
110 </h2><ul class="sub-entries sub-functions">
111
112 <li>
113 <h3 id="Timestamp::__construct">
114 <a href="ion/Timestamp/__construct">Timestamp::__construct</a><a class="permalink" href="ion/Timestamp#Timestamp::__construct">#</a>
115 </h3>
116 <p>Create a new ION timestamp.</p>
117
118 <p><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> <span class="var">$timezone</span> = <code><a href="https://php.net/manual/en/language.types.null">NULL</a></code>]]])</p>
119 </li>
120
121 </ul><h2 id="Namespaces.Interfaces.and.Classes:">Namespaces, Interfaces and Classes:<a class="permalink" href="ion/Timestamp#Namespaces.Interfaces.and.Classes:">#</a>
122 </h2><ul class="sub-entries sub-ns-classes">
123
124 <li>
125 <h3 id="Format">
126 <a href="ion/Timestamp/Format">Format</a><a class="permalink" href="ion/Timestamp#Format">#</a>
127 </h3>
128 <p>Timestamp format.</p>
129
130 <p><code><a href="https://php.net/manual/en/language.types.enumerations">enum</a></code> <a href="ion/Timestamp/Format">ion\Timestamp\Format</a> <em>implements</em> <code><a href="https://php.net/manual/en/class.backedenum">BackedEnum</a></code></p>
131 </li>
132
133 <li>
134 <h3 id="Precision">
135 <a href="ion/Timestamp/Precision">Precision</a><a class="permalink" href="ion/Timestamp#Precision">#</a>
136 </h3>
137 <p>Timestamp precision.</p>
138
139 <p><code><a href="https://php.net/manual/en/language.types.enumerations">enum</a></code> <a href="ion/Timestamp/Precision">ion\Timestamp\Precision</a> <em>implements</em> <code><a href="https://php.net/manual/en/class.backedenum">BackedEnum</a></code></p>
140 </li>
141
142 </ul>
143 <div class="comments">
144 <style>.giscus-frame {min-height: 16em;}</style>
145 <script>
146 function giscus_load(button) {
147 let script = document.createElement("script");
148 script.setAttribute("data-repo", 'awesomized/ext-ion');
149 script.setAttribute("data-category", 'Comments on Docs');
150 script.setAttribute("data-repo-id", 'R_kgDOGfXEXw');
151 script.setAttribute("data-category-id", 'DIC_kwDOGfXEX84CBHuf');
152 script.setAttribute("data-mapping", 'og:title');
153 script.setAttribute("data-input-position", 'bottom');
154 script.setAttribute("data-reactions-enabled", false);
155 script.setAttribute("data-theme", 'light');
156 script.setAttribute("data-lang", 'en');
157
158 script.src = "//giscus.app/client.js";
159 button.parentNode.replaceChild(script, button);
160 }
161 </script>
162 <button class="activator" onclick="giscus_load(this)">Show Comments from Github Discussions</button>
163
164 </div>
165
166 <footer>
167
168 <ul>
169 <li><a href="https://github.com/m6w6/mdref">mdref-v3.0
170 </a></li>
171 <li><a href="LICENSE">&copy; 2013-2022 All rights reserved.</a></li>
172 <li>
173 </li>
174 </ul>
175
176 </footer>
177
178 <script src="index.js" defer></script>
179
180 </div>
181 </body>
182 </html>