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">
14 <link href=
"https://fonts.googleapis.com/css?family=Inconsolata&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">
24 <a href=
"./ion/Timestamp">Edit
</a>
29 <li>↰ <a href=
"./">Home
</a>
34 ↑ <a href=
"./ion">
40 ↻ <strong><a href=
"./ion/Timestamp">Timestamp
</a></strong>
46 ↳ <a href=
"./ion/Timestamp/Format">Format
</a>
51 ↳ <a href=
"./ion/Timestamp/Precision">Precision
</a>
56 ↳ <a href=
"./ion/Timestamp/__construct">Timestamp::__construct
</a>
65 <li>↲ <a href=
"./ion/: Contributing">★ Contributing
</a></li>
67 <li>↲ <a href=
"./ion/: Security">★ Security
</a></li>
69 <li>↲ <a href=
"./ion/Catalog">Catalog
</a></li>
71 <li>↲ <a href=
"./ion/Decimal">Decimal
</a></li>
73 <li>↲ <a href=
"./ion/Exception">Exception
</a></li>
75 <li>↲ <a href=
"./ion/LOB">LOB
</a></li>
77 <li>↲ <a href=
"./ion/Reader">Reader
</a></li>
79 <li>↲ <a href=
"./ion/Serializer">Serializer
</a></li>
81 <li>↲ <a href=
"./ion/Symbol">Symbol
</a></li>
83 <li>↲ <a href=
"./ion/Type">Type
</a></li>
85 <li>↲ <a href=
"./ion/Unserializer">Unserializer
</a></li>
87 <li>↲ <a href=
"./ion/Writer">Writer
</a></li>
89 <li>↲ <a href=
"./ion/serialize">serialize
</a></li>
91 <li>↲ <a href=
"./ion/unserialize">unserialize
</a></li>
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> <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>
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>
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>
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>
114 <h3 id=
"Timestamp::__construct">
115 <a href=
"ion/Timestamp/__construct">Timestamp::__construct
</a><a class=
"permalink" href=
"ion/Timestamp#Timestamp::__construct">#
</a>
117 <p>Create a new ION timestamp.
</p>
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>
122 </ul><h2 id=
"Namespaces.Interfaces.and.Classes:">Namespaces, Interfaces and Classes:
<a class=
"permalink" href=
"ion/Timestamp#Namespaces.Interfaces.and.Classes:">#
</a>
127 <a href=
"ion/Timestamp/Format">Format
</a><a class=
"permalink" href=
"ion/Timestamp#Format">#
</a>
129 <p>Timestamp format.
</p>
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>
136 <a href=
"ion/Timestamp/Precision">Precision
</a><a class=
"permalink" href=
"ion/Timestamp#Precision">#
</a>
138 <p>Timestamp precision.
</p>
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>
144 <div id=
"disqus_thread"><button id=
"disqus_activator">Show
<span> </span> Comment(s)
</button></div>
146 var disqus_shortname = 'mdref';
147 var disqus_identifier = 'ion/Timestamp';
153 <li><a href=
"https://github.com/m6w6/mdref">mdref-v3.0
155 <li><a href=
"LICENSE">© 2013-
2022 All rights reserved.
</a></li>
162 <script src=
"index.js"></script>