8383## Field Details
8484
8585### TaggedString
86+
8687 public static final CBORDateConverter TaggedString
88+
8789A converter object where FromCBORObject accepts CBOR objects with tag 0
8890 (date/time strings) and tag 1 (number of seconds since the start of 1970),
8991 and ToCBORObject converts date/time objects (java.util.Date in DotNet, and Date in
9092 Java) to CBOR objects of tag 0.
93+
9194### TaggedNumber
95+
9296 public static final CBORDateConverter TaggedNumber
97+
9398A converter object where FromCBORObject accepts CBOR objects with tag 0
9499 (date/time strings) and tag 1 (number of seconds since the start of 1970),
95100 and ToCBORObject converts date/time objects (java.util.Date in DotNet, and Date in
@@ -100,8 +105,11 @@ A converter object where FromCBORObject accepts CBOR objects with tag 0
100105 lossy otherwise. The ToCBORObject conversion will throw an exception if the
101106 conversion to binary64 results in positive infinity, negative infinity, or
102107 not-a-number.
108+
103109### UntaggedNumber
110+
104111 public static final CBORDateConverter UntaggedNumber
112+
105113A converter object where FromCBORObject accepts untagged CBOR integer or
106114 CBOR floating-point objects that give the number of seconds since the start
107115 of 1970, and where ToCBORObject converts date/time objects (java.util.Date in
@@ -112,18 +120,23 @@ A converter object where FromCBORObject accepts untagged CBOR integer or
112120 conversion is lossy otherwise. The ToCBORObject conversion will throw an
113121 exception if the conversion to binary64 results in positive infinity,
114122 negative infinity, or not-a-number.
123+
115124## Method Details
116125
117126### getType
127+
118128 public final CBORDateConverter.ConversionType getType()
129+
119130Gets the conversion type for this date converter.
120131
121132** Returns:**
122133
123134* The conversion type for this date converter.
124135
125136### FromCBORObject
137+
126138 public Date FromCBORObject(CBORObject obj)
139+
127140Converts a CBOR object to a java.util.Date (in DotNet) or a Date (in Java).
128141
129142** Specified by:**
@@ -148,7 +161,9 @@ Converts a CBOR object to a java.util.Date (in DotNet) or a Date (in Java).
148161 not supported, or another error occurred in conversion.
149162
150163### TryGetDateTimeFields
164+
151165 public boolean TryGetDateTimeFields(CBORObject obj, com.upokecenter.numbers.EInteger[] year, int[] lesserFields)
166+
152167Tries to extract the fields of a date and time in the form of a CBOR object.
153168
154169** Parameters:**
@@ -180,7 +195,9 @@ Tries to extract the fields of a date and time in the form of a CBOR object.
180195 otherwise.
181196
182197### DateTimeFieldsToCBORObject
198+
183199 public CBORObject DateTimeFieldsToCBORObject(int smallYear, int month, int day)
200+
184201Converts a date/time in the form of a year, month, and day to a CBOR object.
185202 The hour, minute, and second are treated as 00:00:00 by this method, and the
186203 time offset is treated as 0 by this method.
@@ -195,15 +212,17 @@ Converts a date/time in the form of a year, month, and day to a CBOR object.
195212
196213** Returns:**
197214
198- * A CBOR object encoding the given date fields according to the
215+ * A CBOR object encoding the specified date fields according to the
199216 conversion type used to create this date converter.
200217
201218** Throws:**
202219
203220* <code >CBORException</code > - An error occurred in conversion.
204221
205222### DateTimeFieldsToCBORObject
223+
206224 public CBORObject DateTimeFieldsToCBORObject(int smallYear, int month, int day, int hour, int minute, int second)
225+
207226Converts a date/time in the form of a year, month, day, hour, minute, and
208227 second to a CBOR object. The time offset is treated as 0 by this method.
209228
@@ -223,15 +242,17 @@ Converts a date/time in the form of a year, month, day, hour, minute, and
223242
224243** Returns:**
225244
226- * A CBOR object encoding the given date fields according to the
245+ * A CBOR object encoding the specified date fields according to the
227246 conversion type used to create this date converter.
228247
229248** Throws:**
230249
231250* <code >CBORException</code > - An error occurred in conversion.
232251
233252### DateTimeFieldsToCBORObject
253+
234254 public CBORObject DateTimeFieldsToCBORObject(int year, int[] lesserFields)
255+
235256Converts a date/time in the form of a year, month, day, hour, minute,
236257 second, fractional seconds, and time offset to a CBOR object.
237258
@@ -245,7 +266,7 @@ Converts a date/time in the form of a year, month, day, hour, minute,
245266
246267** Returns:**
247268
248- * A CBOR object encoding the given date fields according to the
269+ * A CBOR object encoding the specified date fields according to the
249270 conversion type used to create this date converter.
250271
251272** Throws:**
@@ -255,7 +276,9 @@ Converts a date/time in the form of a year, month, day, hour, minute,
255276* <code >CBORException</code > - An error occurred in conversion.
256277
257278### DateTimeFieldsToCBORObject
279+
258280 public CBORObject DateTimeFieldsToCBORObject(com.upokecenter.numbers.EInteger bigYear, int[] lesserFields)
281+
259282Converts a date/time in the form of a year, month, day, hour, minute,
260283 second, fractional seconds, and time offset to a CBOR object.
261284
@@ -269,7 +292,7 @@ Converts a date/time in the form of a year, month, day, hour, minute,
269292
270293** Returns:**
271294
272- * A CBOR object encoding the given date fields according to the
295+ * A CBOR object encoding the specified date fields according to the
273296 conversion type used to create this date converter.
274297
275298** Throws:**
@@ -280,7 +303,9 @@ Converts a date/time in the form of a year, month, day, hour, minute,
280303* <code >CBORException</code > - An error occurred in conversion.
281304
282305### ToCBORObject
306+
283307 public CBORObject ToCBORObject(Date obj)
308+
284309Converts a java.util.Date (in DotNet) or Date (in Java) to a CBOR object in a
285310 manner specified by this converter's conversion type.
286311
0 commit comments