blob: 7a5a9d43140295ce6cf3f90fd33c8c38f6ddccae [file]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>iceberg-cpp: iceberg/util/temporal_util.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr id="projectrow">
<td id="projectalign">
<div id="projectname">iceberg-cpp
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.8 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function() { init_codefold(0); });
/* @license-end */
</script>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_51d145386ec5f52aa06ebf5e46944abc.html">iceberg</a></li><li class="navelem"><a class="el" href="dir_6a066966226cd78a6111c1015733de08.html">util</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle"><div class="title">temporal_util.h</div></div>
</div><!--header-->
<div class="contents">
<a href="temporal__util_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span><span class="comment">/*</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="comment"> * Licensed to the Apache Software Foundation (ASF) under one</span></div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span><span class="comment"> * or more contributor license agreements. See the NOTICE file</span></div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span><span class="comment"> * distributed with this work for additional information</span></div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="comment"> * regarding copyright ownership. The ASF licenses this file</span></div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span><span class="comment"> * to you under the Apache License, Version 2.0 (the</span></div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span><span class="comment"> * &quot;License&quot;); you may not use this file except in compliance</span></div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span><span class="comment"> * with the License. You may obtain a copy of the License at</span></div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span><span class="comment"> *</span></div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span><span class="comment"> * http://www.apache.org/licenses/LICENSE-2.0</span></div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span><span class="comment"> *</span></div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span><span class="comment"> * Unless required by applicable law or agreed to in writing,</span></div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span><span class="comment"> * software distributed under the License is distributed on an</span></div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span><span class="comment"> * &quot;AS IS&quot; BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY</span></div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span><span class="comment"> * KIND, either express or implied. See the License for the</span></div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span><span class="comment"> * specific language governing permissions and limitations</span></div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span><span class="comment"> * under the License.</span></div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span><span class="comment"> */</span></div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span> </div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span><span class="preprocessor">#pragma once</span></div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span> </div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span> </div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span><span class="preprocessor">#include &lt;chrono&gt;</span></div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span><span class="preprocessor">#include &lt;cstdint&gt;</span></div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span><span class="preprocessor">#include &lt;string_view&gt;</span></div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span> </div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span><span class="preprocessor">#include &quot;<a class="code" href="iceberg__export_8h.html">iceberg/iceberg_export.h</a>&quot;</span></div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span><span class="preprocessor">#include &quot;<a class="code" href="result_8h.html">iceberg/result.h</a>&quot;</span></div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span><span class="preprocessor">#include &quot;<a class="code" href="type__fwd_8h.html">iceberg/type_fwd.h</a>&quot;</span></div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span> </div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span><span class="keyword">namespace </span>iceberg::internal {</div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span> </div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span><span class="keyword">inline</span> <span class="keyword">constexpr</span> int64_t kNanosPerMicro = 1000;</div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span><span class="keyword">inline</span> <span class="keyword">constexpr</span> int64_t kMicrosPerMilli = 1000;</div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span><span class="keyword">inline</span> <span class="keyword">constexpr</span> int64_t kMicrosPerSecond = 1000 * kMicrosPerMilli;</div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span><span class="keyword">inline</span> <span class="keyword">constexpr</span> int64_t kSecondsPerMinute = 60;</div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span><span class="keyword">inline</span> <span class="keyword">constexpr</span> int64_t kMinutesPerHour = 60;</div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span><span class="keyword">inline</span> <span class="keyword">constexpr</span> int64_t kHoursPerDay = 24;</div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span><span class="keyword">inline</span> <span class="keyword">constexpr</span> int64_t kSecondsPerHour = kMinutesPerHour * kSecondsPerMinute;</div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span><span class="keyword">inline</span> <span class="keyword">constexpr</span> int64_t kSecondsPerDay = kHoursPerDay * kSecondsPerHour;</div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span><span class="keyword">inline</span> <span class="keyword">constexpr</span> int64_t kMicrosPerDay = kSecondsPerDay * kMicrosPerSecond;</div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span><span class="keyword">inline</span> <span class="keyword">constexpr</span> int64_t kNanosPerMilli = kMicrosPerMilli * kNanosPerMicro;</div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span><span class="keyword">inline</span> <span class="keyword">constexpr</span> int64_t kNanosPerSecond = kMicrosPerSecond * kNanosPerMicro;</div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span><span class="keyword">inline</span> <span class="keyword">constexpr</span> int64_t kNanosPerDay = kMicrosPerDay * kNanosPerMicro;</div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span> </div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span><span class="keyword">inline</span> <span class="keyword">constexpr</span> <span class="keyword">auto</span> kEpochYmd = std::chrono::year{1970} / std::chrono::January / 1;</div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span><span class="keyword">inline</span> <span class="keyword">constexpr</span> <span class="keyword">auto</span> kEpochDays = std::chrono::sys_days{kEpochYmd};</div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span> </div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span>} <span class="comment">// namespace iceberg::internal</span></div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span> </div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespaceiceberg.html">iceberg</a> {</div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span> </div>
<div class="foldopen" id="foldopen00055" data-start="{" data-end="};">
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"><a class="line" href="classiceberg_1_1TemporalUtils.html"> 55</a></span><span class="keyword">class </span>ICEBERG_EXPORT <a class="code hl_class" href="classiceberg_1_1TemporalUtils.html">TemporalUtils</a> {</div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> <span class="keyword">public</span>:</div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"><a class="line" href="classiceberg_1_1TemporalUtils.html#a6af790454bb92f672273e03b2f8238f0"> 58</a></span> <span class="keyword">static</span> int64_t <a class="code hl_function" href="classiceberg_1_1TemporalUtils.html#a6af790454bb92f672273e03b2f8238f0">NanosToMicros</a>(int64_t nanos);</div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span> </div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"><a class="line" href="classiceberg_1_1TemporalUtils.html#a618187456fc0b6c053762f9266025f56"> 61</a></span> <span class="keyword">static</span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result&lt;int64_t&gt;</a> <a class="code hl_function" href="classiceberg_1_1TemporalUtils.html#a618187456fc0b6c053762f9266025f56">MicrosToNanos</a>(int64_t micros);</div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span> </div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"><a class="line" href="classiceberg_1_1TemporalUtils.html#aa2d660291ff5be084c49973ffef549e6"> 69</a></span> <span class="keyword">static</span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result&lt;int32_t&gt;</a> <a class="code hl_function" href="classiceberg_1_1TemporalUtils.html#aa2d660291ff5be084c49973ffef549e6">ParseDay</a>(std::string_view str);</div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span> </div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"><a class="line" href="classiceberg_1_1TemporalUtils.html#a5de351dfb0a4ff96b6e6f447b0c7713b"> 79</a></span> <span class="keyword">static</span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result&lt;int64_t&gt;</a> <a class="code hl_function" href="classiceberg_1_1TemporalUtils.html#a5de351dfb0a4ff96b6e6f447b0c7713b">ParseTime</a>(std::string_view str);</div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span> </div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"><a class="line" href="classiceberg_1_1TemporalUtils.html#a627fe89bb993788be7b50f38aa4e6f7b"> 89</a></span> <span class="keyword">static</span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result&lt;int64_t&gt;</a> <a class="code hl_function" href="classiceberg_1_1TemporalUtils.html#a627fe89bb993788be7b50f38aa4e6f7b">ParseTimeNs</a>(std::string_view str);</div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span> </div>
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"><a class="line" href="classiceberg_1_1TemporalUtils.html#aec50972faaa52a6787fcb3d5f4fd557a"> 99</a></span> <span class="keyword">static</span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result&lt;int64_t&gt;</a> <a class="code hl_function" href="classiceberg_1_1TemporalUtils.html#aec50972faaa52a6787fcb3d5f4fd557a">ParseTimestamp</a>(std::string_view str);</div>
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno"> 100</span> </div>
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"><a class="line" href="classiceberg_1_1TemporalUtils.html#a48c2d85e77d18f51d51df564b665167e"> 109</a></span> <span class="keyword">static</span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result&lt;int64_t&gt;</a> <a class="code hl_function" href="classiceberg_1_1TemporalUtils.html#a48c2d85e77d18f51d51df564b665167e">ParseTimestampNs</a>(std::string_view str);</div>
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno"> 110</span> </div>
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno"><a class="line" href="classiceberg_1_1TemporalUtils.html#a236d98073d557c92f2265a6db10030dc"> 119</a></span> <span class="keyword">static</span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result&lt;int64_t&gt;</a> <a class="code hl_function" href="classiceberg_1_1TemporalUtils.html#a236d98073d557c92f2265a6db10030dc">ParseTimestampWithZone</a>(std::string_view str);</div>
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno"> 120</span> </div>
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno"><a class="line" href="classiceberg_1_1TemporalUtils.html#a631e26b1e0f7f424df09ec9ad1f85c94"> 129</a></span> <span class="keyword">static</span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result&lt;int64_t&gt;</a> <a class="code hl_function" href="classiceberg_1_1TemporalUtils.html#a631e26b1e0f7f424df09ec9ad1f85c94">ParseTimestampNsWithZone</a>(std::string_view str);</div>
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno"> 130</span> </div>
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno"><a class="line" href="classiceberg_1_1TemporalUtils.html#a10e129aa8a09fc359fdd17ccec6e0da6"> 145</a></span> <span class="keyword">static</span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result&lt;bool&gt;</a> <a class="code hl_function" href="classiceberg_1_1TemporalUtils.html#a10e129aa8a09fc359fdd17ccec6e0da6">IsUtcOffset</a>(std::string_view str);</div>
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno"> 146</span> </div>
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno"><a class="line" href="classiceberg_1_1TemporalUtils.html#a98210b8f6ffb854df1a6f2c52d97e5ea"> 148</a></span> <span class="keyword">static</span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result&lt;Literal&gt;</a> <a class="code hl_function" href="classiceberg_1_1TemporalUtils.html#a98210b8f6ffb854df1a6f2c52d97e5ea">ExtractYear</a>(<span class="keyword">const</span> <a class="code hl_class" href="classiceberg_1_1Literal.html">Literal</a>&amp; literal);</div>
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno"> 149</span> </div>
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno"><a class="line" href="classiceberg_1_1TemporalUtils.html#a7b350f0ca0fcbeed043604f02d9cf266"> 151</a></span> <span class="keyword">static</span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result&lt;Literal&gt;</a> <a class="code hl_function" href="classiceberg_1_1TemporalUtils.html#a7b350f0ca0fcbeed043604f02d9cf266">ExtractMonth</a>(<span class="keyword">const</span> <a class="code hl_class" href="classiceberg_1_1Literal.html">Literal</a>&amp; literal);</div>
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno"> 152</span> </div>
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno"><a class="line" href="classiceberg_1_1TemporalUtils.html#aa2c1bc21fc0af286678b3a08501a2ba9"> 154</a></span> <span class="keyword">static</span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result&lt;Literal&gt;</a> <a class="code hl_function" href="classiceberg_1_1TemporalUtils.html#aa2c1bc21fc0af286678b3a08501a2ba9">ExtractDay</a>(<span class="keyword">const</span> <a class="code hl_class" href="classiceberg_1_1Literal.html">Literal</a>&amp; literal);</div>
<div class="line"><a id="l00155" name="l00155"></a><span class="lineno"> 155</span> </div>
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno"><a class="line" href="classiceberg_1_1TemporalUtils.html#a8c908449bbb2642a1d0e36eb67ed95c4"> 157</a></span> <span class="keyword">static</span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result&lt;Literal&gt;</a> <a class="code hl_function" href="classiceberg_1_1TemporalUtils.html#a8c908449bbb2642a1d0e36eb67ed95c4">ExtractHour</a>(<span class="keyword">const</span> <a class="code hl_class" href="classiceberg_1_1Literal.html">Literal</a>&amp; literal);</div>
<div class="line"><a id="l00158" name="l00158"></a><span class="lineno"> 158</span>};</div>
</div>
<div class="line"><a id="l00159" name="l00159"></a><span class="lineno"> 159</span> </div>
<div class="line"><a id="l00160" name="l00160"></a><span class="lineno"> 160</span>} <span class="comment">// namespace iceberg</span></div>
<div class="ttc" id="aclassiceberg_1_1Literal_html"><div class="ttname"><a href="classiceberg_1_1Literal.html">iceberg::Literal</a></div><div class="ttdoc">Literal is a literal value that is associated with a primitive type.</div><div class="ttdef"><b>Definition</b> literal.h:42</div></div>
<div class="ttc" id="aclassiceberg_1_1TemporalUtils_html"><div class="ttname"><a href="classiceberg_1_1TemporalUtils.html">iceberg::TemporalUtils</a></div><div class="ttdef"><b>Definition</b> temporal_util.h:55</div></div>
<div class="ttc" id="aclassiceberg_1_1TemporalUtils_html_a10e129aa8a09fc359fdd17ccec6e0da6"><div class="ttname"><a href="classiceberg_1_1TemporalUtils.html#a10e129aa8a09fc359fdd17ccec6e0da6">iceberg::TemporalUtils::IsUtcOffset</a></div><div class="ttdeci">static Result&lt; bool &gt; IsUtcOffset(std::string_view str)</div><div class="ttdoc">Reports whether a timestamp-with-zone string carries a zero (UTC) offset.</div></div>
<div class="ttc" id="aclassiceberg_1_1TemporalUtils_html_a236d98073d557c92f2265a6db10030dc"><div class="ttname"><a href="classiceberg_1_1TemporalUtils.html#a236d98073d557c92f2265a6db10030dc">iceberg::TemporalUtils::ParseTimestampWithZone</a></div><div class="ttdeci">static Result&lt; int64_t &gt; ParseTimestampWithZone(std::string_view str)</div><div class="ttdoc">Parses a timestamp-with-zone string into microseconds since epoch (UTC).</div></div>
<div class="ttc" id="aclassiceberg_1_1TemporalUtils_html_a48c2d85e77d18f51d51df564b665167e"><div class="ttname"><a href="classiceberg_1_1TemporalUtils.html#a48c2d85e77d18f51d51df564b665167e">iceberg::TemporalUtils::ParseTimestampNs</a></div><div class="ttdeci">static Result&lt; int64_t &gt; ParseTimestampNs(std::string_view str)</div><div class="ttdoc">Parses a timestamp string into nanoseconds since epoch.</div></div>
<div class="ttc" id="aclassiceberg_1_1TemporalUtils_html_a5de351dfb0a4ff96b6e6f447b0c7713b"><div class="ttname"><a href="classiceberg_1_1TemporalUtils.html#a5de351dfb0a4ff96b6e6f447b0c7713b">iceberg::TemporalUtils::ParseTime</a></div><div class="ttdeci">static Result&lt; int64_t &gt; ParseTime(std::string_view str)</div><div class="ttdoc">Parses a time string into microseconds from midnight.</div></div>
<div class="ttc" id="aclassiceberg_1_1TemporalUtils_html_a618187456fc0b6c053762f9266025f56"><div class="ttname"><a href="classiceberg_1_1TemporalUtils.html#a618187456fc0b6c053762f9266025f56">iceberg::TemporalUtils::MicrosToNanos</a></div><div class="ttdeci">static Result&lt; int64_t &gt; MicrosToNanos(int64_t micros)</div><div class="ttdoc">Convert microseconds since epoch to nanoseconds, failing on overflow.</div></div>
<div class="ttc" id="aclassiceberg_1_1TemporalUtils_html_a627fe89bb993788be7b50f38aa4e6f7b"><div class="ttname"><a href="classiceberg_1_1TemporalUtils.html#a627fe89bb993788be7b50f38aa4e6f7b">iceberg::TemporalUtils::ParseTimeNs</a></div><div class="ttdeci">static Result&lt; int64_t &gt; ParseTimeNs(std::string_view str)</div><div class="ttdoc">Parses a time string into nanoseconds from midnight.</div></div>
<div class="ttc" id="aclassiceberg_1_1TemporalUtils_html_a631e26b1e0f7f424df09ec9ad1f85c94"><div class="ttname"><a href="classiceberg_1_1TemporalUtils.html#a631e26b1e0f7f424df09ec9ad1f85c94">iceberg::TemporalUtils::ParseTimestampNsWithZone</a></div><div class="ttdeci">static Result&lt; int64_t &gt; ParseTimestampNsWithZone(std::string_view str)</div><div class="ttdoc">Parses a timestamp-with-zone string into nanoseconds since epoch (UTC).</div></div>
<div class="ttc" id="aclassiceberg_1_1TemporalUtils_html_a6af790454bb92f672273e03b2f8238f0"><div class="ttname"><a href="classiceberg_1_1TemporalUtils.html#a6af790454bb92f672273e03b2f8238f0">iceberg::TemporalUtils::NanosToMicros</a></div><div class="ttdeci">static int64_t NanosToMicros(int64_t nanos)</div><div class="ttdoc">Convert nanoseconds since epoch to microseconds using floor division.</div></div>
<div class="ttc" id="aclassiceberg_1_1TemporalUtils_html_a7b350f0ca0fcbeed043604f02d9cf266"><div class="ttname"><a href="classiceberg_1_1TemporalUtils.html#a7b350f0ca0fcbeed043604f02d9cf266">iceberg::TemporalUtils::ExtractMonth</a></div><div class="ttdeci">static Result&lt; Literal &gt; ExtractMonth(const Literal &amp;literal)</div><div class="ttdoc">Extract a date or timestamp month, as months from 1970-01-01.</div></div>
<div class="ttc" id="aclassiceberg_1_1TemporalUtils_html_a8c908449bbb2642a1d0e36eb67ed95c4"><div class="ttname"><a href="classiceberg_1_1TemporalUtils.html#a8c908449bbb2642a1d0e36eb67ed95c4">iceberg::TemporalUtils::ExtractHour</a></div><div class="ttdeci">static Result&lt; Literal &gt; ExtractHour(const Literal &amp;literal)</div><div class="ttdoc">Extract a timestamp hour, as hours from 1970-01-01 00:00:00.</div></div>
<div class="ttc" id="aclassiceberg_1_1TemporalUtils_html_a98210b8f6ffb854df1a6f2c52d97e5ea"><div class="ttname"><a href="classiceberg_1_1TemporalUtils.html#a98210b8f6ffb854df1a6f2c52d97e5ea">iceberg::TemporalUtils::ExtractYear</a></div><div class="ttdeci">static Result&lt; Literal &gt; ExtractYear(const Literal &amp;literal)</div><div class="ttdoc">Extract a date or timestamp year, as years from 1970.</div></div>
<div class="ttc" id="aclassiceberg_1_1TemporalUtils_html_aa2c1bc21fc0af286678b3a08501a2ba9"><div class="ttname"><a href="classiceberg_1_1TemporalUtils.html#aa2c1bc21fc0af286678b3a08501a2ba9">iceberg::TemporalUtils::ExtractDay</a></div><div class="ttdeci">static Result&lt; Literal &gt; ExtractDay(const Literal &amp;literal)</div><div class="ttdoc">Extract a date or timestamp day, as days from 1970-01-01.</div></div>
<div class="ttc" id="aclassiceberg_1_1TemporalUtils_html_aa2d660291ff5be084c49973ffef549e6"><div class="ttname"><a href="classiceberg_1_1TemporalUtils.html#aa2d660291ff5be084c49973ffef549e6">iceberg::TemporalUtils::ParseDay</a></div><div class="ttdeci">static Result&lt; int32_t &gt; ParseDay(std::string_view str)</div><div class="ttdoc">Parses a date string in &quot;[+-]yyyy-MM-dd&quot; format into days since epoch.</div></div>
<div class="ttc" id="aclassiceberg_1_1TemporalUtils_html_aec50972faaa52a6787fcb3d5f4fd557a"><div class="ttname"><a href="classiceberg_1_1TemporalUtils.html#aec50972faaa52a6787fcb3d5f4fd557a">iceberg::TemporalUtils::ParseTimestamp</a></div><div class="ttdeci">static Result&lt; int64_t &gt; ParseTimestamp(std::string_view str)</div><div class="ttdoc">Parses a timestamp string into microseconds since epoch.</div></div>
<div class="ttc" id="aiceberg__export_8h_html"><div class="ttname"><a href="iceberg__export_8h.html">iceberg_export.h</a></div><div class="ttdoc">Define symbol visibility macros for core Iceberg APIs.</div></div>
<div class="ttc" id="anamespaceiceberg_html"><div class="ttname"><a href="namespaceiceberg.html">iceberg</a></div><div class="ttdoc">Core Apache Iceberg C++ APIs.</div><div class="ttdef"><b>Definition</b> arrow_io_util.h:33</div></div>
<div class="ttc" id="anamespaceiceberg_html_a9d5594e371beb516b0120e07e69d3af6"><div class="ttname"><a href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">iceberg::Result</a></div><div class="ttdeci">std::expected&lt; T, E &gt; Result</div><div class="ttdoc">Result alias.</div><div class="ttdef"><b>Definition</b> result.h:88</div></div>
<div class="ttc" id="aresult_8h_html"><div class="ttname"><a href="result_8h.html">result.h</a></div><div class="ttdoc">Define Result, Status, and error helpers.</div></div>
<div class="ttc" id="atype__fwd_8h_html"><div class="ttname"><a href="type__fwd_8h.html">type_fwd.h</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.8
</small></address>
</body>
</html>