doc: Bug 495211: Update TmfTimestampFormat reference API
[deliverable/tracecompass.git] / doc / org.eclipse.tracecompass.doc.user / reference / api / org / eclipse / tracecompass / tmf / core / timestamp / TmfTimestampFormat.html
CommitLineData
61fd6eae
MAL
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2<!-- NewPage -->
3<html lang="en">
4<head>
d187a562 5<!-- Generated by javadoc (1.8.0_91) on Mon Jun 06 13:57:27 EDT 2016 -->
73cc4ccf 6<title>TmfTimestampFormat</title>
d187a562 7<meta name="date" content="2016-06-06">
61fd6eae 8<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
d187a562 9<script type="text/javascript" src="../../../../../../script.js"></script>
61fd6eae
MAL
10</head>
11<body>
12<script type="text/javascript"><!--
d187a562
PT
13 try {
14 if (location.href.indexOf('is-external=true') == -1) {
15 parent.document.title="TmfTimestampFormat";
16 }
17 }
18 catch(err) {
61fd6eae
MAL
19 }
20//-->
d187a562
PT
21var methods = {"i0":10,"i1":10,"i2":9,"i3":9,"i4":10,"i5":10,"i6":10,"i7":9};
22var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
23var altColor = "altColor";
24var rowColor = "rowColor";
25var tableTab = "tableTab";
26var activeTableTab = "activeTableTab";
61fd6eae
MAL
27</script>
28<noscript>
29<div>JavaScript is disabled on your browser.</div>
30</noscript>
61fd6eae
MAL
31<!-- ======== START OF CLASS DATA ======== -->
32<div class="header">
33<div class="subTitle">org.eclipse.tracecompass.tmf.core.timestamp</div>
34<h2 title="Class TmfTimestampFormat" class="title">Class TmfTimestampFormat</h2>
35</div>
36<div class="contentContainer">
37<ul class="inheritance">
d187a562 38<li><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
61fd6eae
MAL
39<li>
40<ul class="inheritance">
d187a562 41<li><a href="https://docs.oracle.com/javase/8/docs/api/java/text/Format.html?is-external=true" title="class or interface in java.text">java.text.Format</a></li>
61fd6eae
MAL
42<li>
43<ul class="inheritance">
d187a562 44<li><a href="https://docs.oracle.com/javase/8/docs/api/java/text/DateFormat.html?is-external=true" title="class or interface in java.text">java.text.DateFormat</a></li>
61fd6eae
MAL
45<li>
46<ul class="inheritance">
d187a562 47<li><a href="https://docs.oracle.com/javase/8/docs/api/java/text/SimpleDateFormat.html?is-external=true" title="class or interface in java.text">java.text.SimpleDateFormat</a></li>
61fd6eae
MAL
48<li>
49<ul class="inheritance">
50<li>org.eclipse.tracecompass.tmf.core.timestamp.TmfTimestampFormat</li>
51</ul>
52</li>
53</ul>
54</li>
55</ul>
56</li>
57</ul>
58</li>
59</ul>
60<div class="description">
61<ul class="blockList">
62<li class="blockList">
63<dl>
64<dt>All Implemented Interfaces:</dt>
d187a562 65<dd><a href="https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Cloneable.html?is-external=true" title="class or interface in java.lang">Cloneable</a></dd>
61fd6eae
MAL
66</dl>
67<hr>
68<br>
d187a562
PT
69<pre>public class <span class="typeNameLabel">TmfTimestampFormat</span>
70extends <a href="https://docs.oracle.com/javase/8/docs/api/java/text/SimpleDateFormat.html?is-external=true" title="class or interface in java.text">SimpleDateFormat</a></pre>
61fd6eae
MAL
71<div class="block">A formatting and parsing facility that can handle timestamps that span the
72 epoch with a precision down to the nanosecond. It can be understood as an
73 extension of SimpleDateFormat that supports seconds since the epoch (Jan 1,
74 1970, 00:00:00 GMT), additional sub-second patterns and optional delimiters.
75 <p>
76 The timestamp representation is broken down into a number of optional
77 components that can be assembled into a fairly simple way.
78
79 <h4>Date and Time Patterns</h4>
d187a562 80 All date and time pattern letters defined in <a href="https://docs.oracle.com/javase/8/docs/api/java/text/SimpleDateFormat.html?is-external=true" title="class or interface in java.text"><code>SimpleDateFormat</code></a> are
61fd6eae
MAL
81 supported with the following exceptions:
82 <blockquote>
83 <table border=0 cellspacing=3 cellpadding=0 >
d187a562 84 <tr>
61fd6eae
MAL
85 <th align=left>Format
86 <th align=left>Description
87 <th align=left>Value Range
88 <th align=left>Example
d187a562 89 <tr>
61fd6eae
MAL
90 <td><code>T</code>
91 <td>The seconds since the epoch
92 <td><code>0-9223372036</code>
93 <td><code>1332170682</code>
d187a562
PT
94 <tr>
95 <td><code>Td</code>
96 <td>The deciseconds since the epoch
97 <td><code>0-92233720368</code>
98 <td><code>13321706825</code>
99 <tr>
100 <td><code>Tc</code>
101 <td>The centiseconds since the epoch
102 <td><code>0-922337203685</code>
103 <td><code>133217068253</code>
104 <tr>
105 <td><code>Tm</code>
106 <td>The milliseconds since the epoch
107 <td><code>0-9223372036854</code>
108 <td><code>1332170682539</code>
109 <tr>
110 <td><code>Tu</code>
111 <td>The microseconds since the epoch
112 <td><code>0-9223372036854775</code>
113 <td><code>1332170682539677</code>
114 <tr>
115 <td><code>Tn</code>
116 <td>The nanoseconds since the epoch
117 <td><code>0-9223372036854775807</code>
118 <td><code>1332170682539677389</code>
61fd6eae
MAL
119 <tr>
120 <td><code>S</code>
121 <td>Millisecond
122 <td><code>N/A</code>
123 <td><code>Not supported</code>
d187a562 124 <tr>
61fd6eae
MAL
125 <td><code>W</code>
126 <td>Week in month
127 <td><code>N/A</code>
128 <td><code>Not supported</code>
129 </table>
130 </blockquote>
131 <p>
132 <strong>Note:</strong> When parsing, if "T" is used, no other Date and Time
133 pattern letter will be interpreted and the entire pre-delimiter input string
134 will be parsed as a number. Also, "T" should be used for time intervals.
135 <p>
136 <strong>Note:</strong> The decimal separator between the Date and Time
137 pattern and the Sub-Seconds pattern is mandatory (if there is a fractional
138 part) and must be one of the sub-second delimiters. Date and Time pattern
139 letters are not interpreted after the decimal separator.
140 <p>
141 <h4>Sub-Seconds Patterns</h4>
142 <blockquote>
143 <table border=0 cellspacing=3 cellpadding=0 >
d187a562 144 <tr>
61fd6eae
MAL
145 <th align=left>Format
146 <th align=left>Description
147 <th align=left>Value Range
148 <th align=left>Example
149 <tr>
150 <td><code>S</code>
d187a562 151 <td>Fraction of second (or unit of second)
61fd6eae
MAL
152 <td><code>0-999999999</code>
153 <td><code>123456789</code>
d187a562 154 <tr>
61fd6eae
MAL
155 <td><code>C</code>
156 <td>Microseconds in ms
157 <td><code>0-999</code>
158 <td><code>456</code>
159 <tr>
160 <td><code>N</code>
161 <td>Nanoseconds in &#181s
162 <td><code>0-999</code>
163 <td><code>789</code>
164 </table>
165 </blockquote>
166 <strong>Note:</strong> The fraction of second pattern can be split, in which
167 case parsing and formatting continues at the next digit. Digits beyond the
168 total number of pattern letters are ignored when parsing and truncated when
169 formatting.
170 <p>
171 <strong>Note:</strong> When parsing, "S", "C" and "N" are interchangeable
172 and are all handled as fraction of second ("S"). The use of "C" and "N" is
173 discouraged but is supported for backward compatibility.
174 <p>
175
176 The recognized sub-second delimiters are:
177 <ul>
178 <li>Space ("<code> </code>")
179 <li>Period ("<code>.</code>")
180 <li>Comma ("<code>,</code>")
181 <li>Dash ("<code>-</code>")
182 <li>Underline ("<code>_</code>")
183 <li>Colon ("<code>:</code>")
184 <li>Semicolon ("<code>;</code>")
185 <li>Slash ("<code>/</code>")
186 <li>Single-quote ("<code>''</code>")
187 <li>Double-quote ("<code>"</code>")
188 </ul>
189 <p>
190 <strong>Note:</strong> When parsing, sub-second delimiters are optional if
191 unquoted. However, an extra delimiter or any other unexpected character in
192 the input string ends the parsing of digits. All other quoted or unquoted
193 characters in the sub-second pattern are matched against the input string.
194
195 <h4>Examples</h4>
196 The following examples show how timestamp patterns are interpreted in
197 the U.S. locale. The given timestamp is 1332170682539677389L, the number
198 of nanoseconds since 1970/01/01.
199
200 <blockquote>
201 <table border=0 cellspacing=3 cellpadding=0>
d187a562 202 <tr>
61fd6eae
MAL
203 <th align=left>Date and Time Pattern
204 <th align=left>Result
205 <tr>
206 <td><code>"yyyy-MM-dd HH:mm:ss.SSS.SSS.SSS"</code>
207 <td><code>2012-03-19 11:24:42.539.677.389</code>
d187a562 208 <tr>
61fd6eae
MAL
209 <td><code>"yyyy-MM-dd HH:mm:ss.SSS.SSS"</code>
210 <td><code>2012-03-19 11:24:42.539.677</code>
211 <tr>
212 <td><code>"yyyy-D HH:mm:ss.SSS.SSS"</code>
213 <td><code>2012-79 11:24:42.539.677</code>
d187a562 214 <tr>
61fd6eae
MAL
215 <td><code>"ss,SSSS"</code>
216 <td><code>42,5397</code>
217 <tr>
218 <td><code>"T.SSS SSS SSS"</code>
219 <td><code>1332170682.539 677 389</code>
d187a562 220 <tr>
61fd6eae
MAL
221 <td><code>"T"</code>
222 <td><code>1332170682</code>
d187a562
PT
223 <tr>
224 <td><code>"Tm.SSSSSS"</code>
225 <td><code>1332170682539.677389</code>
226 <tr>
227 <td><code>"Tn"</code>
228 <td><code>1332170682539677389</code>
61fd6eae
MAL
229 </table>
230 </blockquote>
231 <p></div>
d187a562
PT
232<dl>
233<dt><span class="simpleTagLabel">Author:</span></dt>
234<dd>Francois Chouinard</dd>
235<dt><span class="seeLabel">See Also:</span></dt>
236<dd><a href="../../../../../../serialized-form.html#org.eclipse.tracecompass.tmf.core.timestamp.TmfTimestampFormat">Serialized Form</a></dd>
237</dl>
61fd6eae
MAL
238</li>
239</ul>
240</div>
241<div class="summary">
242<ul class="blockList">
243<li class="blockList">
244<!-- ======== NESTED CLASS SUMMARY ======== -->
245<ul class="blockList">
d187a562 246<li class="blockList"><a name="nested.class.summary">
61fd6eae
MAL
247<!-- -->
248</a>
249<h3>Nested Class Summary</h3>
250<ul class="blockList">
d187a562 251<li class="blockList"><a name="nested.classes.inherited.from.class.java.text.DateFormat">
61fd6eae
MAL
252<!-- -->
253</a>
d187a562
PT
254<h3>Nested classes/interfaces inherited from class&nbsp;java.text.<a href="https://docs.oracle.com/javase/8/docs/api/java/text/DateFormat.html?is-external=true" title="class or interface in java.text">DateFormat</a></h3>
255<code><a href="https://docs.oracle.com/javase/8/docs/api/java/text/DateFormat.Field.html?is-external=true" title="class or interface in java.text">DateFormat.Field</a></code></li>
61fd6eae
MAL
256</ul>
257</li>
258</ul>
259<!-- =========== FIELD SUMMARY =========== -->
260<ul class="blockList">
d187a562 261<li class="blockList"><a name="field.summary">
61fd6eae
MAL
262<!-- -->
263</a>
264<h3>Field Summary</h3>
d187a562 265<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
61fd6eae
MAL
266<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
267<tr>
268<th class="colFirst" scope="col">Modifier and Type</th>
269<th class="colLast" scope="col">Field and Description</th>
270</tr>
271<tr class="altColor">
d187a562
PT
272<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
273<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/tracecompass/tmf/core/timestamp/TmfTimestampFormat.html#DEFAULT_INTERVAL_PATTERN">DEFAULT_INTERVAL_PATTERN</a></span></code>
61fd6eae
MAL
274<div class="block">The default interval pattern</div>
275</td>
276</tr>
277<tr class="rowColor">
d187a562
PT
278<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
279<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/tracecompass/tmf/core/timestamp/TmfTimestampFormat.html#DEFAULT_TIME_PATTERN">DEFAULT_TIME_PATTERN</a></span></code>
61fd6eae
MAL
280<div class="block">The default timestamp pattern</div>
281</td>
282</tr>
61fd6eae
MAL
283</table>
284<ul class="blockList">
d187a562 285<li class="blockList"><a name="fields.inherited.from.class.java.text.DateFormat">
61fd6eae
MAL
286<!-- -->
287</a>
d187a562
PT
288<h3>Fields inherited from class&nbsp;java.text.<a href="https://docs.oracle.com/javase/8/docs/api/java/text/DateFormat.html?is-external=true" title="class or interface in java.text">DateFormat</a></h3>
289<code><a href="https://docs.oracle.com/javase/8/docs/api/java/text/DateFormat.html?is-external=true#AM_PM_FIELD" title="class or interface in java.text">AM_PM_FIELD</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/text/DateFormat.html?is-external=true#DATE_FIELD" title="class or interface in java.text">DATE_FIELD</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/text/DateFormat.html?is-external=true#DAY_OF_WEEK_FIELD" title="class or interface in java.text">DAY_OF_WEEK_FIELD</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/text/DateFormat.html?is-external=true#DAY_OF_WEEK_IN_MONTH_FIELD" title="class or interface in java.text">DAY_OF_WEEK_IN_MONTH_FIELD</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/text/DateFormat.html?is-external=true#DAY_OF_YEAR_FIELD" title="class or interface in java.text">DAY_OF_YEAR_FIELD</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/text/DateFormat.html?is-external=true#DEFAULT" title="class or interface in java.text">DEFAULT</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/text/DateFormat.html?is-external=true#ERA_FIELD" title="class or interface in java.text">ERA_FIELD</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/text/DateFormat.html?is-external=true#FULL" title="class or interface in java.text">FULL</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/text/DateFormat.html?is-external=true#HOUR_OF_DAY0_FIELD" title="class or interface in java.text">HOUR_OF_DAY0_FIELD</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/text/DateFormat.html?is-external=true#HOUR_OF_DAY1_FIELD" title="class or interface in java.text">HOUR_OF_DAY1_FIELD</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/text/DateFormat.html?is-external=true#HOUR0_FIELD" title="class or interface in java.text">HOUR0_FIELD</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/text/DateFormat.html?is-external=true#HOUR1_FIELD" title="class or interface in java.text">HOUR1_FIELD</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/text/DateFormat.html?is-external=true#LONG" title="class or interface in java.text">LONG</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/text/DateFormat.html?is-external=true#MEDIUM" title="class or interface in java.text">MEDIUM</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/text/DateFormat.html?is-external=true#MILLISECOND_FIELD" title="class or interface in java.text">MILLISECOND_FIELD</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/text/DateFormat.html?is-external=true#MINUTE_FIELD" title="class or interface in java.text">MINUTE_FIELD</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/text/DateFormat.html?is-external=true#MONTH_FIELD" title="class or interface in java.text">MONTH_FIELD</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/text/DateFormat.html?is-external=true#SECOND_FIELD" title="class or interface in java.text">SECOND_FIELD</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/text/DateFormat.html?is-external=true#SHORT" title="class or interface in java.text">SHORT</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/text/DateFormat.html?is-external=true#TIMEZONE_FIELD" title="class or interface in java.text">TIMEZONE_FIELD</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/text/DateFormat.html?is-external=true#WEEK_OF_MONTH_FIELD" title="class or interface in java.text">WEEK_OF_MONTH_FIELD</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/text/DateFormat.html?is-external=true#WEEK_OF_YEAR_FIELD" title="class or interface in java.text">WEEK_OF_YEAR_FIELD</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/text/DateFormat.html?is-external=true#YEAR_FIELD" title="class or interface in java.text">YEAR_FIELD</a></code></li>
61fd6eae
MAL
290</ul>
291</li>
292</ul>
293<!-- ======== CONSTRUCTOR SUMMARY ======== -->
294<ul class="blockList">
d187a562 295<li class="blockList"><a name="constructor.summary">
61fd6eae
MAL
296<!-- -->
297</a>
298<h3>Constructor Summary</h3>
d187a562 299<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
61fd6eae
MAL
300<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
301<tr>
302<th class="colOne" scope="col">Constructor and Description</th>
303</tr>
304<tr class="altColor">
d187a562 305<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/tracecompass/tmf/core/timestamp/TmfTimestampFormat.html#TmfTimestampFormat--">TmfTimestampFormat</a></span>()</code>
61fd6eae
MAL
306<div class="block">The default constructor (uses the default pattern)</div>
307</td>
308</tr>
309<tr class="rowColor">
d187a562 310<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/tracecompass/tmf/core/timestamp/TmfTimestampFormat.html#TmfTimestampFormat-java.lang.String-">TmfTimestampFormat</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pattern)</code>
61fd6eae
MAL
311<div class="block">The normal constructor</div>
312</td>
313</tr>
314<tr class="altColor">
d187a562
PT
315<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/tracecompass/tmf/core/timestamp/TmfTimestampFormat.html#TmfTimestampFormat-java.lang.String-java.util.TimeZone-">TmfTimestampFormat</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pattern,
316 <a href="https://docs.oracle.com/javase/8/docs/api/java/util/TimeZone.html?is-external=true" title="class or interface in java.util">TimeZone</a>&nbsp;timeZone)</code>
61fd6eae
MAL
317<div class="block">The full constructor</div>
318</td>
319</tr>
320<tr class="rowColor">
d187a562
PT
321<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/tracecompass/tmf/core/timestamp/TmfTimestampFormat.html#TmfTimestampFormat-java.lang.String-java.util.TimeZone-java.util.Locale-">TmfTimestampFormat</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pattern,
322 <a href="https://docs.oracle.com/javase/8/docs/api/java/util/TimeZone.html?is-external=true" title="class or interface in java.util">TimeZone</a>&nbsp;timeZone,
323 <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Locale.html?is-external=true" title="class or interface in java.util">Locale</a>&nbsp;locale)</code>
61fd6eae
MAL
324<div class="block">The fuller constructor</div>
325</td>
326</tr>
327<tr class="altColor">
d187a562 328<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/tracecompass/tmf/core/timestamp/TmfTimestampFormat.html#TmfTimestampFormat-org.eclipse.tracecompass.tmf.core.timestamp.TmfTimestampFormat-">TmfTimestampFormat</a></span>(<a href="../../../../../../org/eclipse/tracecompass/tmf/core/timestamp/TmfTimestampFormat.html" title="class in org.eclipse.tracecompass.tmf.core.timestamp">TmfTimestampFormat</a>&nbsp;other)</code>
61fd6eae
MAL
329<div class="block">The copy constructor</div>
330</td>
331</tr>
332</table>
333</li>
334</ul>
335<!-- ========== METHOD SUMMARY =========== -->
336<ul class="blockList">
d187a562 337<li class="blockList"><a name="method.summary">
61fd6eae
MAL
338<!-- -->
339</a>
340<h3>Method Summary</h3>
d187a562
PT
341<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
342<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
61fd6eae
MAL
343<tr>
344<th class="colFirst" scope="col">Modifier and Type</th>
345<th class="colLast" scope="col">Method and Description</th>
346</tr>
d187a562 347<tr id="i0" class="altColor">
61fd6eae 348<td class="colFirst"><code>void</code></td>
d187a562 349<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/tracecompass/tmf/core/timestamp/TmfTimestampFormat.html#applyPattern-java.lang.String-">applyPattern</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pattern)</code>&nbsp;</td>
61fd6eae 350</tr>
d187a562
PT
351<tr id="i1" class="rowColor">
352<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
353<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/tracecompass/tmf/core/timestamp/TmfTimestampFormat.html#format-long-">format</a></span>(long&nbsp;value)</code>
61fd6eae
MAL
354<div class="block">Format the timestamp according to its pattern.</div>
355</td>
356</tr>
d187a562 357<tr id="i2" class="altColor">
61fd6eae 358<td class="colFirst"><code>static <a href="../../../../../../org/eclipse/tracecompass/tmf/core/timestamp/TmfTimestampFormat.html" title="class in org.eclipse.tracecompass.tmf.core.timestamp">TmfTimestampFormat</a></code></td>
d187a562 359<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/tracecompass/tmf/core/timestamp/TmfTimestampFormat.html#getDefaulIntervalFormat--">getDefaulIntervalFormat</a></span>()</code>&nbsp;</td>
61fd6eae 360</tr>
d187a562 361<tr id="i3" class="rowColor">
61fd6eae 362<td class="colFirst"><code>static <a href="../../../../../../org/eclipse/tracecompass/tmf/core/timestamp/TmfTimestampFormat.html" title="class in org.eclipse.tracecompass.tmf.core.timestamp">TmfTimestampFormat</a></code></td>
d187a562 363<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/tracecompass/tmf/core/timestamp/TmfTimestampFormat.html#getDefaulTimeFormat--">getDefaulTimeFormat</a></span>()</code>&nbsp;</td>
61fd6eae 364</tr>
d187a562 365<tr id="i4" class="altColor">
61fd6eae 366<td class="colFirst"><code>long</code></td>
d187a562 367<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/tracecompass/tmf/core/timestamp/TmfTimestampFormat.html#parseValue-java.lang.String-">parseValue</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;source)</code>
61fd6eae
MAL
368<div class="block">Parse a string according to the format pattern</div>
369</td>
370</tr>
d187a562 371<tr id="i5" class="rowColor">
61fd6eae 372<td class="colFirst"><code>long</code></td>
d187a562 373<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/tracecompass/tmf/core/timestamp/TmfTimestampFormat.html#parseValue-java.lang.String-long-">parseValue</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;source,
61fd6eae
MAL
374 long&nbsp;ref)</code>
375<div class="block">Parse a string according to the format pattern</div>
376</td>
377</tr>
d187a562
PT
378<tr id="i6" class="altColor">
379<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
380<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/tracecompass/tmf/core/timestamp/TmfTimestampFormat.html#toPattern--">toPattern</a></span>()</code>&nbsp;</td>
61fd6eae 381</tr>
d187a562 382<tr id="i7" class="rowColor">
61fd6eae 383<td class="colFirst"><code>static void</code></td>
d187a562
PT
384<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/tracecompass/tmf/core/timestamp/TmfTimestampFormat.html#updateDefaultFormats--">updateDefaultFormats</a></span>()</code>
385<div class="block">Update the default time and default interval formats</div>
386</td>
61fd6eae
MAL
387</tr>
388</table>
389<ul class="blockList">
d187a562 390<li class="blockList"><a name="methods.inherited.from.class.java.text.SimpleDateFormat">
61fd6eae
MAL
391<!-- -->
392</a>
d187a562
PT
393<h3>Methods inherited from class&nbsp;java.text.<a href="https://docs.oracle.com/javase/8/docs/api/java/text/SimpleDateFormat.html?is-external=true" title="class or interface in java.text">SimpleDateFormat</a></h3>
394<code><a href="https://docs.oracle.com/javase/8/docs/api/java/text/SimpleDateFormat.html?is-external=true#applyLocalizedPattern-java.lang.String-" title="class or interface in java.text">applyLocalizedPattern</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/text/SimpleDateFormat.html?is-external=true#clone--" title="class or interface in java.text">clone</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/text/SimpleDateFormat.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.text">equals</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/text/SimpleDateFormat.html?is-external=true#format-java.util.Date-java.lang.StringBuffer-java.text.FieldPosition-" title="class or interface in java.text">format</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/text/SimpleDateFormat.html?is-external=true#formatToCharacterIterator-java.lang.Object-" title="class or interface in java.text">formatToCharacterIterator</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/text/SimpleDateFormat.html?is-external=true#get2DigitYearStart--" title="class or interface in java.text">get2DigitYearStart</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/text/SimpleDateFormat.html?is-external=true#getDateFormatSymbols--" title="class or interface in java.text">getDateFormatSymbols</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/text/SimpleDateFormat.html?is-external=true#hashCode--" title="class or interface in java.text">hashCode</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/text/SimpleDateFormat.html?is-external=true#parse-java.lang.String-java.text.ParsePosition-" title="class or interface in java.text">parse</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/text/SimpleDateFormat.html?is-external=true#set2DigitYearStart-java.util.Date-" title="class or interface in java.text">set2DigitYearStart</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/text/SimpleDateFormat.html?is-external=true#setDateFormatSymbols-java.text.DateFormatSymbols-" title="class or interface in java.text">setDateFormatSymbols</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/text/SimpleDateFormat.html?is-external=true#toLocalizedPattern--" title="class or interface in java.text">toLocalizedPattern</a></code></li>
61fd6eae
MAL
395</ul>
396<ul class="blockList">
d187a562 397<li class="blockList"><a name="methods.inherited.from.class.java.text.DateFormat">
61fd6eae
MAL
398<!-- -->
399</a>
d187a562
PT
400<h3>Methods inherited from class&nbsp;java.text.<a href="https://docs.oracle.com/javase/8/docs/api/java/text/DateFormat.html?is-external=true" title="class or interface in java.text">DateFormat</a></h3>
401<code><a href="https://docs.oracle.com/javase/8/docs/api/java/text/DateFormat.html?is-external=true#format-java.util.Date-" title="class or interface in java.text">format</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/text/DateFormat.html?is-external=true#format-java.lang.Object-java.lang.StringBuffer-java.text.FieldPosition-" title="class or interface in java.text">format</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/text/DateFormat.html?is-external=true#getAvailableLocales--" title="class or interface in java.text">getAvailableLocales</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/text/DateFormat.html?is-external=true#getCalendar--" title="class or interface in java.text">getCalendar</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/text/DateFormat.html?is-external=true#getDateInstance--" title="class or interface in java.text">getDateInstance</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/text/DateFormat.html?is-external=true#getDateInstance-int-" title="class or interface in java.text">getDateInstance</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/text/DateFormat.html?is-external=true#getDateInstance-int-java.util.Locale-" title="class or interface in java.text">getDateInstance</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/text/DateFormat.html?is-external=true#getDateTimeInstance--" title="class or interface in java.text">getDateTimeInstance</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/text/DateFormat.html?is-external=true#getDateTimeInstance-int-int-" title="class or interface in java.text">getDateTimeInstance</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/text/DateFormat.html?is-external=true#getDateTimeInstance-int-int-java.util.Locale-" title="class or interface in java.text">getDateTimeInstance</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/text/DateFormat.html?is-external=true#getInstance--" title="class or interface in java.text">getInstance</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/text/DateFormat.html?is-external=true#getNumberFormat--" title="class or interface in java.text">getNumberFormat</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/text/DateFormat.html?is-external=true#getTimeInstance--" title="class or interface in java.text">getTimeInstance</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/text/DateFormat.html?is-external=true#getTimeInstance-int-" title="class or interface in java.text">getTimeInstance</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/text/DateFormat.html?is-external=true#getTimeInstance-int-java.util.Locale-" title="class or interface in java.text">getTimeInstance</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/text/DateFormat.html?is-external=true#getTimeZone--" title="class or interface in java.text">getTimeZone</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/text/DateFormat.html?is-external=true#isLenient--" title="class or interface in java.text">isLenient</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/text/DateFormat.html?is-external=true#parse-java.lang.String-" title="class or interface in java.text">parse</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/text/DateFormat.html?is-external=true#parseObject-java.lang.String-java.text.ParsePosition-" title="class or interface in java.text">parseObject</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/text/DateFormat.html?is-external=true#setCalendar-java.util.Calendar-" title="class or interface in java.text">setCalendar</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/text/DateFormat.html?is-external=true#setLenient-boolean-" title="class or interface in java.text">setLenient</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/text/DateFormat.html?is-external=true#setNumberFormat-java.text.NumberFormat-" title="class or interface in java.text">setNumberFormat</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/text/DateFormat.html?is-external=true#setTimeZone-java.util.TimeZone-" title="class or interface in java.text">setTimeZone</a></code></li>
61fd6eae
MAL
402</ul>
403<ul class="blockList">
d187a562 404<li class="blockList"><a name="methods.inherited.from.class.java.text.Format">
61fd6eae
MAL
405<!-- -->
406</a>
d187a562
PT
407<h3>Methods inherited from class&nbsp;java.text.<a href="https://docs.oracle.com/javase/8/docs/api/java/text/Format.html?is-external=true" title="class or interface in java.text">Format</a></h3>
408<code><a href="https://docs.oracle.com/javase/8/docs/api/java/text/Format.html?is-external=true#format-java.lang.Object-" title="class or interface in java.text">format</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/text/Format.html?is-external=true#parseObject-java.lang.String-" title="class or interface in java.text">parseObject</a></code></li>
61fd6eae
MAL
409</ul>
410<ul class="blockList">
d187a562 411<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
61fd6eae
MAL
412<!-- -->
413</a>
d187a562
PT
414<h3>Methods inherited from class&nbsp;java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
415<code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang">toString</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li>
61fd6eae
MAL
416</ul>
417</li>
418</ul>
419</li>
420</ul>
421</div>
422<div class="details">
423<ul class="blockList">
424<li class="blockList">
425<!-- ============ FIELD DETAIL =========== -->
426<ul class="blockList">
d187a562 427<li class="blockList"><a name="field.detail">
61fd6eae
MAL
428<!-- -->
429</a>
430<h3>Field Detail</h3>
d187a562 431<a name="DEFAULT_TIME_PATTERN">
61fd6eae
MAL
432<!-- -->
433</a>
434<ul class="blockList">
435<li class="blockList">
d187a562
PT
436<h4>DEFAULT_TIME_PATTERN</h4>
437<pre>public static final&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> DEFAULT_TIME_PATTERN</pre>
438<div class="block">The default timestamp pattern</div>
439<dl>
440<dt><span class="seeLabel">See Also:</span></dt>
441<dd><a href="../../../../../../constant-values.html#org.eclipse.tracecompass.tmf.core.timestamp.TmfTimestampFormat.DEFAULT_TIME_PATTERN">Constant Field Values</a></dd>
442</dl>
61fd6eae
MAL
443</li>
444</ul>
d187a562 445<a name="DEFAULT_INTERVAL_PATTERN">
61fd6eae
MAL
446<!-- -->
447</a>
448<ul class="blockListLast">
449<li class="blockList">
d187a562
PT
450<h4>DEFAULT_INTERVAL_PATTERN</h4>
451<pre>public static final&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> DEFAULT_INTERVAL_PATTERN</pre>
452<div class="block">The default interval pattern</div>
453<dl>
454<dt><span class="seeLabel">See Also:</span></dt>
455<dd><a href="../../../../../../constant-values.html#org.eclipse.tracecompass.tmf.core.timestamp.TmfTimestampFormat.DEFAULT_INTERVAL_PATTERN">Constant Field Values</a></dd>
456</dl>
61fd6eae
MAL
457</li>
458</ul>
459</li>
460</ul>
461<!-- ========= CONSTRUCTOR DETAIL ======== -->
462<ul class="blockList">
d187a562 463<li class="blockList"><a name="constructor.detail">
61fd6eae
MAL
464<!-- -->
465</a>
466<h3>Constructor Detail</h3>
d187a562 467<a name="TmfTimestampFormat--">
61fd6eae
MAL
468<!-- -->
469</a>
470<ul class="blockList">
471<li class="blockList">
472<h4>TmfTimestampFormat</h4>
473<pre>public&nbsp;TmfTimestampFormat()</pre>
474<div class="block">The default constructor (uses the default pattern)</div>
475</li>
476</ul>
d187a562 477<a name="TmfTimestampFormat-java.lang.String-">
61fd6eae
MAL
478<!-- -->
479</a>
480<ul class="blockList">
481<li class="blockList">
482<h4>TmfTimestampFormat</h4>
d187a562 483<pre>public&nbsp;TmfTimestampFormat(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pattern)</pre>
61fd6eae 484<div class="block">The normal constructor</div>
d187a562
PT
485<dl>
486<dt><span class="paramLabel">Parameters:</span></dt>
487<dd><code>pattern</code> - the format pattern</dd>
488</dl>
61fd6eae
MAL
489</li>
490</ul>
d187a562 491<a name="TmfTimestampFormat-java.lang.String-java.util.TimeZone-">
61fd6eae
MAL
492<!-- -->
493</a>
494<ul class="blockList">
495<li class="blockList">
496<h4>TmfTimestampFormat</h4>
d187a562
PT
497<pre>public&nbsp;TmfTimestampFormat(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pattern,
498 <a href="https://docs.oracle.com/javase/8/docs/api/java/util/TimeZone.html?is-external=true" title="class or interface in java.util">TimeZone</a>&nbsp;timeZone)</pre>
61fd6eae 499<div class="block">The full constructor</div>
d187a562
PT
500<dl>
501<dt><span class="paramLabel">Parameters:</span></dt>
502<dd><code>pattern</code> - the format pattern</dd>
503<dd><code>timeZone</code> - the time zone</dd>
504</dl>
61fd6eae
MAL
505</li>
506</ul>
d187a562 507<a name="TmfTimestampFormat-java.lang.String-java.util.TimeZone-java.util.Locale-">
61fd6eae
MAL
508<!-- -->
509</a>
510<ul class="blockList">
511<li class="blockList">
512<h4>TmfTimestampFormat</h4>
d187a562
PT
513<pre>public&nbsp;TmfTimestampFormat(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pattern,
514 <a href="https://docs.oracle.com/javase/8/docs/api/java/util/TimeZone.html?is-external=true" title="class or interface in java.util">TimeZone</a>&nbsp;timeZone,
515 <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Locale.html?is-external=true" title="class or interface in java.util">Locale</a>&nbsp;locale)</pre>
61fd6eae 516<div class="block">The fuller constructor</div>
d187a562
PT
517<dl>
518<dt><span class="paramLabel">Parameters:</span></dt>
519<dd><code>pattern</code> - the format pattern</dd>
520<dd><code>timeZone</code> - the time zone</dd>
521<dd><code>locale</code> - the locale</dd>
522</dl>
61fd6eae
MAL
523</li>
524</ul>
d187a562 525<a name="TmfTimestampFormat-org.eclipse.tracecompass.tmf.core.timestamp.TmfTimestampFormat-">
61fd6eae
MAL
526<!-- -->
527</a>
528<ul class="blockListLast">
529<li class="blockList">
530<h4>TmfTimestampFormat</h4>
531<pre>public&nbsp;TmfTimestampFormat(<a href="../../../../../../org/eclipse/tracecompass/tmf/core/timestamp/TmfTimestampFormat.html" title="class in org.eclipse.tracecompass.tmf.core.timestamp">TmfTimestampFormat</a>&nbsp;other)</pre>
532<div class="block">The copy constructor</div>
d187a562
PT
533<dl>
534<dt><span class="paramLabel">Parameters:</span></dt>
535<dd><code>other</code> - the other format pattern</dd>
536</dl>
61fd6eae
MAL
537</li>
538</ul>
539</li>
540</ul>
541<!-- ============ METHOD DETAIL ========== -->
542<ul class="blockList">
d187a562 543<li class="blockList"><a name="method.detail">
61fd6eae
MAL
544<!-- -->
545</a>
546<h3>Method Detail</h3>
d187a562 547<a name="updateDefaultFormats--">
61fd6eae
MAL
548<!-- -->
549</a>
550<ul class="blockList">
551<li class="blockList">
d187a562
PT
552<h4>updateDefaultFormats</h4>
553<pre>public static&nbsp;void&nbsp;updateDefaultFormats()</pre>
554<div class="block">Update the default time and default interval formats</div>
61fd6eae
MAL
555</li>
556</ul>
d187a562 557<a name="getDefaulTimeFormat--">
61fd6eae
MAL
558<!-- -->
559</a>
560<ul class="blockList">
561<li class="blockList">
d187a562
PT
562<h4>getDefaulTimeFormat</h4>
563<pre>public static&nbsp;<a href="../../../../../../org/eclipse/tracecompass/tmf/core/timestamp/TmfTimestampFormat.html" title="class in org.eclipse.tracecompass.tmf.core.timestamp">TmfTimestampFormat</a>&nbsp;getDefaulTimeFormat()</pre>
564<dl>
565<dt><span class="returnLabel">Returns:</span></dt>
566<dd>the default time format pattern</dd>
567</dl>
61fd6eae
MAL
568</li>
569</ul>
d187a562 570<a name="getDefaulIntervalFormat--">
61fd6eae
MAL
571<!-- -->
572</a>
573<ul class="blockList">
574<li class="blockList">
575<h4>getDefaulIntervalFormat</h4>
576<pre>public static&nbsp;<a href="../../../../../../org/eclipse/tracecompass/tmf/core/timestamp/TmfTimestampFormat.html" title="class in org.eclipse.tracecompass.tmf.core.timestamp">TmfTimestampFormat</a>&nbsp;getDefaulIntervalFormat()</pre>
d187a562
PT
577<dl>
578<dt><span class="returnLabel">Returns:</span></dt>
579<dd>the default interval format pattern</dd>
580</dl>
61fd6eae
MAL
581</li>
582</ul>
d187a562 583<a name="applyPattern-java.lang.String-">
61fd6eae
MAL
584<!-- -->
585</a>
586<ul class="blockList">
587<li class="blockList">
d187a562
PT
588<h4>applyPattern</h4>
589<pre>public&nbsp;void&nbsp;applyPattern(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pattern)</pre>
590<dl>
591<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
592<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/text/SimpleDateFormat.html?is-external=true#applyPattern-java.lang.String-" title="class or interface in java.text">applyPattern</a></code>&nbsp;in class&nbsp;<code><a href="https://docs.oracle.com/javase/8/docs/api/java/text/SimpleDateFormat.html?is-external=true" title="class or interface in java.text">SimpleDateFormat</a></code></dd>
593</dl>
61fd6eae
MAL
594</li>
595</ul>
d187a562 596<a name="toPattern--">
61fd6eae
MAL
597<!-- -->
598</a>
599<ul class="blockList">
600<li class="blockList">
d187a562
PT
601<h4>toPattern</h4>
602<pre>public&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;toPattern()</pre>
603<dl>
604<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
605<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/text/SimpleDateFormat.html?is-external=true#toPattern--" title="class or interface in java.text">toPattern</a></code>&nbsp;in class&nbsp;<code><a href="https://docs.oracle.com/javase/8/docs/api/java/text/SimpleDateFormat.html?is-external=true" title="class or interface in java.text">SimpleDateFormat</a></code></dd>
606</dl>
61fd6eae
MAL
607</li>
608</ul>
d187a562 609<a name="format-long-">
61fd6eae
MAL
610<!-- -->
611</a>
612<ul class="blockList">
613<li class="blockList">
d187a562
PT
614<h4>format</h4>
615<pre>public&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;format(long&nbsp;value)</pre>
616<div class="block">Format the timestamp according to its pattern.</div>
617<dl>
618<dt><span class="paramLabel">Parameters:</span></dt>
619<dd><code>value</code> - the timestamp value to format (in ns)</dd>
620<dt><span class="returnLabel">Returns:</span></dt>
621<dd>the formatted timestamp</dd>
622</dl>
61fd6eae
MAL
623</li>
624</ul>
d187a562 625<a name="parseValue-java.lang.String-long-">
73cc4ccf
PT
626<!-- -->
627</a>
628<ul class="blockList">
629<li class="blockList">
d187a562
PT
630<h4>parseValue</h4>
631<pre>public&nbsp;long&nbsp;parseValue(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;source,
632 long&nbsp;ref)
633 throws <a href="https://docs.oracle.com/javase/8/docs/api/java/text/ParseException.html?is-external=true" title="class or interface in java.text">ParseException</a></pre>
634<div class="block">Parse a string according to the format pattern</div>
73cc4ccf 635<dl>
d187a562
PT
636<dt><span class="paramLabel">Parameters:</span></dt>
637<dd><code>source</code> - the source string</dd>
638<dd><code>ref</code> - the reference (base) time (in ns)</dd>
639<dt><span class="returnLabel">Returns:</span></dt>
640<dd>the parsed value (in ns)</dd>
641<dt><span class="throwsLabel">Throws:</span></dt>
642<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/text/ParseException.html?is-external=true" title="class or interface in java.text">ParseException</a></code> - if the string has an invalid format</dd>
73cc4ccf
PT
643</dl>
644</li>
645</ul>
d187a562 646<a name="parseValue-java.lang.String-">
61fd6eae
MAL
647<!-- -->
648</a>
649<ul class="blockListLast">
650<li class="blockList">
d187a562
PT
651<h4>parseValue</h4>
652<pre>public&nbsp;long&nbsp;parseValue(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;source)
653 throws <a href="https://docs.oracle.com/javase/8/docs/api/java/text/ParseException.html?is-external=true" title="class or interface in java.text">ParseException</a></pre>
654<div class="block">Parse a string according to the format pattern</div>
655<dl>
656<dt><span class="paramLabel">Parameters:</span></dt>
657<dd><code>source</code> - the source string</dd>
658<dt><span class="returnLabel">Returns:</span></dt>
659<dd>the parsed value (in ns)</dd>
660<dt><span class="throwsLabel">Throws:</span></dt>
661<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/text/ParseException.html?is-external=true" title="class or interface in java.text">ParseException</a></code> - if the string has an invalid format</dd>
662</dl>
61fd6eae
MAL
663</li>
664</ul>
665</li>
666</ul>
667</li>
668</ul>
669</div>
670</div>
671<!-- ========= END OF CLASS DATA ========= -->
61fd6eae
MAL
672</body>
673</html>
This page took 0.079029 seconds and 5 git commands to generate.