release v0.1.0
[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 name="viewport" content="width=1200, initial-scale=0.5">
10 <base href="/ext-ion/v0.1/">
11 <meta http-equiv="Content-Location" content="/ext-ion/v0.1/ion/Timestamp">
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="/ext-ion/v0.1/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">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 &circlearrowright; <strong><a href="./ion/Timestamp">Timestamp</a></strong>
41
42
43 <ul>
44
45 <li>
46 &rdsh; <a href="./ion/Timestamp/Format">Format</a>
47
48 </li>
49
50 <li>
51 &rdsh; <a href="./ion/Timestamp/Precision">Precision</a>
52
53 </li>
54
55 <li>
56 &rdsh; <a href="./ion/Timestamp/__construct">Timestamp::__construct</a>
57
58 </li>
59
60 </ul>
61
62
63 </ul>
64
65 <li>&ldsh; <a href="./ion/: Contributing">★ Contributing</a></li>
66
67 <li>&ldsh; <a href="./ion/: Security">★ Security</a></li>
68
69 <li>&ldsh; <a href="./ion/Catalog">Catalog</a></li>
70
71 <li>&ldsh; <a href="./ion/Decimal">Decimal</a></li>
72
73 <li>&ldsh; <a href="./ion/Exception">Exception</a></li>
74
75 <li>&ldsh; <a href="./ion/LOB">LOB</a></li>
76
77 <li>&ldsh; <a href="./ion/Reader">Reader</a></li>
78
79 <li>&ldsh; <a href="./ion/Serializer">Serializer</a></li>
80
81 <li>&ldsh; <a href="./ion/Symbol">Symbol</a></li>
82
83 <li>&ldsh; <a href="./ion/Type">Type</a></li>
84
85 <li>&ldsh; <a href="./ion/Unserializer">Unserializer</a></li>
86
87 <li>&ldsh; <a href="./ion/Writer">Writer</a></li>
88
89 <li>&ldsh; <a href="./ion/serialize">serialize</a></li>
90
91 <li>&ldsh; <a href="./ion/unserialize">unserialize</a></li>
92
93 </li>
94 </ul>
95
96 </li>
97 </ul>
98 </div>
99 <meta charset="utf-8"><h1>
100 <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>
101 </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>
102 </h2><p>None.</p><h2 id="Properties:">Properties:<a class="permalink" href="ion/Timestamp#Properties:">#</a>
103 </h2><ul>
104 <li>
105 <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>
106 The timestamp's precision. See <a href="ion/Timestamp/Precision">ion\Timestamp\Precision</a>.</li>
107 <li>
108 <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>
109 The timestamp's format. See <a href="ion/Timestamp/Format">ion\Timestamp\Format</a>.</li>
110 </ul><h2 id="Functions:">Functions:<a class="permalink" href="ion/Timestamp#Functions:">#</a>
111 </h2><ul>
112
113 <li>
114 <h3 id="Timestamp::__construct">
115 <a href="ion/Timestamp/__construct">Timestamp::__construct</a><a class="permalink" href="ion/Timestamp#Timestamp::__construct">#</a>
116 </h3>
117 <p>Create a new ION timestamp.</p>
118
119 <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>
120 </li>
121
122 </ul><h2 id="Namespaces.Interfaces.and.Classes:">Namespaces, Interfaces and Classes:<a class="permalink" href="ion/Timestamp#Namespaces.Interfaces.and.Classes:">#</a>
123 </h2><ul>
124
125 <li>
126 <h3 id="Format">
127 <a href="ion/Timestamp/Format">Format</a><a class="permalink" href="ion/Timestamp#Format">#</a>
128 </h3>
129 <p>Timestamp format.</p>
130
131 <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>
132 </li>
133
134 <li>
135 <h3 id="Precision">
136 <a href="ion/Timestamp/Precision">Precision</a><a class="permalink" href="ion/Timestamp#Precision">#</a>
137 </h3>
138 <p>Timestamp precision.</p>
139
140 <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>
141 </li>
142
143 </ul>
144 <div id="disqus_thread"><button id="disqus_activator">Show <span> </span> Comment(s)</button></div>
145 <script>
146 var disqus_shortname = 'mdref';
147 var disqus_identifier = 'ion/Timestamp';
148 </script>
149
150 <footer>
151
152 <ul>
153 <li><a href="https://github.com/m6w6/mdref">mdref-v3.0
154 </a></li>
155 <li><a href="LICENSE">&copy; 2013-2022 All rights reserved.</a></li>
156 <li>
157 </li>
158 </ul>
159
160 </footer>
161
162 <script src="index.js"></script>
163
164 </div>
165 </body>
166 </html>