Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions lib/ilib_date.dart
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
class ILibDateOptions {
/// [locale] Locales are specified either with a specifier string that follows the BCP-47 convention,
/// [year] The year
/// [month] The month
/// [week] The week
/// [day] The day of the month
/// [hour] The hour of the day
/// [minute] The minute [0..59]
/// [second] The second [0..59]
/// [millisecond] The millisecond [0..999]
/// [unixtime] Sets the time of this instance according to the given unix time.
/// [timezone] Time zone name as a string
/// [calendar] Same as "type" property
/// [dateTime] DateTime class of flutter
/// [type] Specifies the type/calendar of the date desired.
/// [locale] Locales are specified either with a specifier string that follows the BCP-47 convention.<br>
/// [year] The year<br>
/// [month] The month<br>
/// [week] The week<br>
/// [day] The day of the month<br>
/// [hour] The hour of the day<br>
/// [minute] The minute [0..59]<br>
/// [second] The second [0..59]<br>
/// [millisecond] The millisecond [0..999]<br>
/// [unixtime] Sets the time of this instance according to the given unix time.<br>
/// [timezone] Time zone name as a string<br>
/// [calendar] Same as "type" property<br>
/// [dateTime] DateTime class of flutter<br>
/// [type] Specifies the type/calendar of the date desired.<br>
ILibDateOptions(
{this.locale,
this.year,
Expand Down
28 changes: 14 additions & 14 deletions lib/ilib_datefmt.dart
Original file line number Diff line number Diff line change
Expand Up @@ -119,17 +119,17 @@ class ILibDateFmt {
}

class ILibDateFmtOptions {
/// [locale] Locales are specified either with a specifier string that follows the BCP-47 convention,
/// [length] Specifies the length of the format to use.Valid values are "short", "medium", "long" and "full".
/// [type] Specifies whether this formatter should format times only, dates only, or both times and dates together. Valid values are "time", "date", and "datetime".
/// [calendar] The type of calendar to use for this format.
/// [timezone] Time zone to use when formatting times.
/// [useNative] The flag used to determine whether to use the native script settings for formatting the numbers.
/// [date] This property tells which components of a date format to use. Valid values are: "dmwy", "dmy", "dmw", "dm", "my", "dw", "d", "m","n","y". Default components, if this property is not specified, is "dmy".
/// [time] This property gives which components of a time format to use. Valid values for this property are: "ahmsz", "ahms", "hmsz", "hms", "ahmz", "ahm", hmz", ah", "hm", "ms", "h", "m", "s". Default value if this property is not specified is "hma".
/// [clock] Hour format. Valid values: "12", "24".
/// [template] Custom date/time format string.
/// [meridiems] string that specifies what style of meridiems to use with this format. The choices are "default", "gregorian", "ethiopic", and "chinese".
/// [locale] Locales are specified either with a specifier string that follows the BCP-47 convention,<br>
/// [length] Specifies the length of the format to use.Valid values are "short", "medium", "long" and "full".<br>
/// [type] Specifies whether this formatter should format times only, dates only, or both times and dates together. Valid values are "time", "date", and "datetime".<br>
/// [calendar] The type of calendar to use for this format.<br>
/// [timezone] Time zone to use when formatting times.<br>
/// [useNative] The flag used to determine whether to use the native script settings for formatting the numbers.<br>
/// [date] This property tells which components of a date format to use. Valid values are: "dmwy", "dmy", "dmw", "dm", "my", "dw", "d", "m","n","y". Default components, if this property is not specified, is "dmy".<br>
/// [time] This property gives which components of a time format to use. Valid values for this property are: "ahmsz", "ahms", "hmsz", "hms", "ahmz", "ahm", hmz", ah", "hm", "ms", "h", "m", "s". Default value if this property is not specified is "hma".<br>
/// [clock] Hour format. Valid values: "12", "24".<br>
/// [template] Custom date/time format string.<br>
/// [meridiems] string that specifies what style of meridiems to use with this format. The choices are "default", "gregorian", "ethiopic", and "chinese".<br>
ILibDateFmtOptions(
{this.locale,
this.length,
Expand All @@ -156,9 +156,9 @@ class ILibDateFmtOptions {
}

class MeridiemsInfo {
/// [name] The name of the meridiem
/// [start] The startTime of meridiem
/// [end] The endTime of meridiem
/// [name] The name of the meridiem.<br>
/// [start] The startTime of meridiem.<br>
/// [end] The endTime of meridiem.<br>
MeridiemsInfo({this.name, this.start, this.end});
String? name;
String? start;
Expand Down
24 changes: 12 additions & 12 deletions lib/ilib_durationfmt.dart
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ class ILibDurationFmt {
return result;
}

/// Return the locale that was used to construct this duration formatter object.
/// If the locale was not given as parameter to the constructor, this method returns the default
/// locale of the system.
/// Return the locale that was used to construct this duration formatter object.<br>
/// If the locale was not given as parameter to the constructor, this method returns the default<br>
/// locale of the system.<br>
String getLocale() {
String result = '';
final String formatOptions = toJsonString();
Expand All @@ -68,9 +68,9 @@ class ILibDurationFmt {
return result;
}

/// Return the length that was used to construct this duration formatter object. If the
/// length was not given as parameter to the constructor, this method returns the default
/// length. Valid values are "short", "medium", "long", and "full".
/// Return the length that was used to construct this duration formatter object. If the<br>
/// length was not given as parameter to the constructor, this method returns the default<br>
/// length. Valid values are "short", "medium", "long", and "full".<br>
String getLength() {
String result = '';
final String formatOptions = toJsonString();
Expand All @@ -79,8 +79,8 @@ class ILibDurationFmt {
return result;
}

/// Return the style that was used to construct this duration formatter object.
/// Valid values are "text" or "clock".
/// Return the style that was used to construct this duration formatter object.<br>
/// Valid values are "text" or "clock".<br>
String getStyle() {
String result = '';
final String formatOptions = toJsonString();
Expand All @@ -91,10 +91,10 @@ class ILibDurationFmt {
}

class ILibDurationFmtOptions {
/// [locale] Locales are specified either with a specifier string that follows the BCP-47 convention.
/// [length] Specifies the length of the format to use. Valid values are "short", "medium", "long" and "full".
/// [style] whether hours, minutes, and seconds should be formatted as a text string or as a regular time as on a clock.
/// [useNative] The flag used to determine whether to use the native script settings for formatting the numbers.
/// [locale] Locales are specified either with a specifier string that follows the BCP-47 convention.<br>
/// [length] Specifies the length of the format to use. Valid values are "short", "medium", "long" and "full".<br>
/// [style] whether hours, minutes, and seconds should be formatted as a text string or as a regular time as on a clock.<br>
/// [useNative] The flag used to determine whether to use the native script settings for formatting the numbers.<br>
ILibDurationFmtOptions({
this.locale,
this.length,
Expand Down