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">
15 <link rel=
"shortcut icon" href=
"/ext-ion/v0.1/favicon.ico">
23 <a href=
"https://github.com/awesomized/ext-ion/edit/master/ion.stub.php">Edit
</a>
28 <li>↰ <a href=
"./">Home
</a>
33 ↑ <a href=
"./ion">
39 ↻ <strong><a href=
"./ion/Timestamp">Timestamp
</a></strong>
45 ↳ <a href=
"./ion/Timestamp/Format">Format
</a>
50 ↳ <a href=
"./ion/Timestamp/Precision">Precision
</a>
55 ↳ <a href=
"./ion/Timestamp/__construct">Timestamp::__construct
</a>
64 <li>↲ <a href=
"./ion/: Contributing">★ Contributing
</a></li>
66 <li>↲ <a href=
"./ion/: Security">★ Security
</a></li>
68 <li>↲ <a href=
"./ion/: Tutorial">★ Tutorial
</a></li>
70 <li>↲ <a href=
"./ion/Catalog">Catalog
</a></li>
72 <li>↲ <a href=
"./ion/Decimal">Decimal
</a></li>
74 <li>↲ <a href=
"./ion/Exception">Exception
</a></li>
76 <li>↲ <a href=
"./ion/LOB">LOB
</a></li>
78 <li>↲ <a href=
"./ion/Reader">Reader
</a></li>
80 <li>↲ <a href=
"./ion/Serializer">Serializer
</a></li>
82 <li>↲ <a href=
"./ion/Symbol">Symbol
</a></li>
84 <li>↲ <a href=
"./ion/Type">Type
</a></li>
86 <li>↲ <a href=
"./ion/Unserializer">Unserializer
</a></li>
88 <li>↲ <a href=
"./ion/Writer">Writer
</a></li>
90 <li>↲ <a href=
"./ion/serialize">serialize
</a></li>
92 <li>↲ <a href=
"./ion/unserialize">unserialize
</a></li>
100 <meta charset=
"utf-8"><h1>
101 <a class=
"permalink" href=
"ion/Timestamp#">#
</a><em>class
</em> <a href=
"ion/Timestamp">ion\Timestamp
</a> <br> <em>extends
</em> <code><a href=
"https://php.net/manual/en/class.datetime">DateTime
</a></code> <br> <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>
102 </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>
103 </h2><p>None.
</p><h2 id=
"Properties:">Properties:
<a class=
"permalink" href=
"ion/Timestamp#Properties:">#
</a>
106 <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>
107 The timestamp's precision. See
<a href=
"ion/Timestamp/Precision">ion\Timestamp\Precision
</a>.
</li>
109 <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>
110 The timestamp's format. See
<a href=
"ion/Timestamp/Format">ion\Timestamp\Format
</a>.
</li>
111 </ul><h2 id=
"Functions:">Functions:
<a class=
"permalink" href=
"ion/Timestamp#Functions:">#
</a>
112 </h2><ul class=
"sub-entries sub-functions">
115 <h3 id=
"Timestamp::__construct">
116 <a href=
"ion/Timestamp/__construct">Timestamp::__construct
</a><a class=
"permalink" href=
"ion/Timestamp#Timestamp::__construct">#
</a>
118 <p>Create a new ION timestamp.
</p>
120 <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>|
<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>]]])
</p>
123 </ul><h2 id=
"Namespaces.Interfaces.and.Classes:">Namespaces, Interfaces and Classes:
<a class=
"permalink" href=
"ion/Timestamp#Namespaces.Interfaces.and.Classes:">#
</a>
124 </h2><ul class=
"sub-entries sub-ns-classes">
128 <a href=
"ion/Timestamp/Format">Format
</a><a class=
"permalink" href=
"ion/Timestamp#Format">#
</a>
130 <p>Timestamp format.
</p>
132 <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>
137 <a href=
"ion/Timestamp/Precision">Precision
</a><a class=
"permalink" href=
"ion/Timestamp#Precision">#
</a>
139 <p>Timestamp precision.
</p>
141 <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>
145 <div class=
"comments">
146 <style>.giscus-frame {min-height:
16em;}
</style>
148 function giscus_load(button) {
149 let script = document.createElement(
"script");
150 script.setAttribute(
"data-repo", 'awesomized/ext-ion');
151 script.setAttribute(
"data-category", 'Comments on Docs');
152 script.setAttribute(
"data-repo-id", 'R_kgDOGfXEXw');
153 script.setAttribute(
"data-category-id", 'DIC_kwDOGfXEX84CBHuf');
154 script.setAttribute(
"data-mapping", 'og:title');
155 script.setAttribute(
"data-input-position", 'bottom');
156 script.setAttribute(
"data-reactions-enabled", false);
157 script.setAttribute(
"data-theme", 'light');
158 script.setAttribute(
"data-lang", 'en');
160 script.src =
"//giscus.app/client.js";
161 button.parentNode.replaceChild(script, button);
164 <button class=
"activator" onclick=
"giscus_load(this)">Show Comments from Github Discussions
</button>
171 <li><a href=
"https://github.com/m6w6/mdref">mdref-v3.0
173 <li><a href=
"LICENSE">© 2013-
2022 All rights reserved.
</a></li>
180 <script src=
"index.js" defer
></script>