datetimeformatters

java.time DateTimeFormatters for Android.

License

License

Categories

Categories

ORM Data
GroupId

GroupId

dev.drewhamilton.androidtime
ArtifactId

ArtifactId

datetimeformatters
Last Version

Last Version

2.2.0
Release Date

Release Date

Type

Type

aar
Description

Description

datetimeformatters
java.time DateTimeFormatters for Android.
Project URL

Project URL

https://github.com/drewhamilton/AndroidDateTimeFormatters
Source Code Management

Source Code Management

https://github.com/drewhamilton/AndroidDateTimeFormatters

Download datetimeformatters

How to add to project

<!-- https://jarcasting.com/artifacts/dev.drewhamilton.androidtime/datetimeformatters/ -->
<dependency>
    <groupId>dev.drewhamilton.androidtime</groupId>
    <artifactId>datetimeformatters</artifactId>
    <version>2.2.0</version>
    <type>aar</type>
</dependency>
// https://jarcasting.com/artifacts/dev.drewhamilton.androidtime/datetimeformatters/
implementation 'dev.drewhamilton.androidtime:datetimeformatters:2.2.0'
// https://jarcasting.com/artifacts/dev.drewhamilton.androidtime/datetimeformatters/
implementation ("dev.drewhamilton.androidtime:datetimeformatters:2.2.0")
'dev.drewhamilton.androidtime:datetimeformatters:aar:2.2.0'
<dependency org="dev.drewhamilton.androidtime" name="datetimeformatters" rev="2.2.0">
  <artifact name="datetimeformatters" type="aar" />
</dependency>
@Grapes(
@Grab(group='dev.drewhamilton.androidtime', module='datetimeformatters', version='2.2.0')
)
libraryDependencies += "dev.drewhamilton.androidtime" % "datetimeformatters" % "2.2.0"
[dev.drewhamilton.androidtime/datetimeformatters "2.2.0"]

Dependencies

runtime (1)

Group / Artifact Type Version
androidx.annotation » annotation jar 1.1.0

Project Modules

There are no modules declared in this project.

AndroidDateTimeFormatters

This library provides DateTimeFormatters that make use of Android-specific features. Localized time formatters respect Android's 12-/24-hour clock system setting. And "skeleton" formatters take a format string skeleton and localize it based on the given Context.

Two versions of the library exist: one for java.time types and another for ThreeTenBP types.

With core library desugaring supported in Android Gradle Plugin 4+, the "datetimeformatters" artifact, using java.time types, is considered the primary and preferred artifact and can be used down to Android SDK version 4. However, "datetimeformatters-threetenbp" can be used in apps that still use ThreeTenBP, down to Android SDK version 15.

Download

Maven Central

AndroidDateTimeFormatters is available on Maven Central.

// java.time formatters:
implementation "dev.drewhamilton.androidtime:datetimeformatters:$version"

// ThreeTenBP formatters:
implementation "dev.drewhamilton.androidtime:datetimeformatters-threetenbp:$version"

License

Copyright 2019 Drew Hamilton

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Versions

Version
2.2.0
2.1.1
2.1.0
2.0.1
2.0.0