import {ReducedPrinterParser} from 'js-joda/src/format/parser/NumberPrinterParser.js'
ReducedPrinterParser
Extends:
Prints and parses a reduced numeric date-time field.
Constructor Summary
Public Constructor | ||
public |
constructor(field: TemporalField, width: number, maxWidth: number, baseValue: number, baseDate: ChronoLocalDate) Constructor. |
Method Summary
Public Methods | ||
public |
getValue(context: DateTimePrintContext, value: number): * |
|
public |
isFixedWidth(context: DateTimeParseContext): * |
|
public |
toString(): * |
|
public |
withFixedWidth(): * |
|
public |
withSubsequentWidth(subsequentWidth: number): ReducedPrinterParser |
Inherited Summary
From class NumberPrinterParser | ||
public |
field(): * |
|
public |
maxWidth(): * |
|
public |
minWidth(): * |
|
public |
parse(context: *, text: *, position: *): * |
|
public |
|
|
public |
signStyle(): * |
|
public |
toString(): * |
|
public |
withFixedWidth(): * |
|
public |
withSubsequentWidth(subsequentWidth: *): * |
Public Constructors
public constructor(field: TemporalField, width: number, maxWidth: number, baseValue: number, baseDate: ChronoLocalDate) source
Constructor.
Override:
NumberPrinterParser#constructorParams:
Name | Type | Attribute | Description |
field | TemporalField | the field to print, validated not null |
|
width | number | the field width, from 1 to 10 |
|
maxWidth | number | the field max width, from 1 to 10 |
|
baseValue | number | the base value |
|
baseDate | ChronoLocalDate | the base date |
Public Methods
public getValue(context: DateTimePrintContext, value: number): * source
Params:
Name | Type | Attribute | Description |
context | DateTimePrintContext | ||
value | number |
Return:
* |
public isFixedWidth(context: DateTimeParseContext): * source
Params:
Name | Type | Attribute | Description |
context | DateTimeParseContext |
Return:
* |
public withSubsequentWidth(subsequentWidth: number): ReducedPrinterParser source
Params:
Name | Type | Attribute | Description |
subsequentWidth | number |