6 Timestamp::__construct -
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.1/">
12 <meta http-equiv=
"Content-Location" content=
"/ext-ion/v0.1/ion/Timestamp/__construct">
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 ↑ <a href=
"./ion/Timestamp">
45 ↻ <strong><a href=
"./ion/Timestamp/__construct">Timestamp::__construct
</a></strong>
51 <li>↲ <a href=
"./ion/Timestamp/Format">Format
</a></li>
53 <li>↲ <a href=
"./ion/Timestamp/Precision">Precision
</a></li>
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>
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>
76 <div class=
"comments">
77 <style>.giscus-frame {min-height:
16em;}
</style>
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');
91 script.src =
"//giscus.app/client.js";
92 button.parentNode.replaceChild(script, button);
95 <button class=
"activator" onclick=
"giscus_load(this)">Show Comments from Github Discussions
</button>
102 <li><a href=
"https://github.com/m6w6/mdref">mdref-v3.0
104 <li><a href=
"LICENSE">© 2013-
2022 All rights reserved.
</a></li>
111 <script src=
"index.js" defer
></script>