Search in sources :

Example 1 with TemporalAccessor

use of org.threeten.bp.temporal.TemporalAccessor in project sbt-android by scala-android.

the class DebugView method setupBuildSection.

private void setupBuildSection() {
    buildNameView.setText(BuildConfig.VERSION_NAME);
    buildCodeView.setText(String.valueOf(BuildConfig.VERSION_CODE));
    buildShaView.setText(BuildConfig.GIT_SHA);
    TemporalAccessor buildTime = ISO_INSTANT.parse(BuildConfig.BUILD_TIME);
    buildDateView.setText(DATE_DISPLAY_FORMAT.format(buildTime));
}
Also used : TemporalAccessor(org.threeten.bp.temporal.TemporalAccessor)

Example 2 with TemporalAccessor

use of org.threeten.bp.temporal.TemporalAccessor in project u2020 by JakeWharton.

the class DebugView method setupBuildSection.

private void setupBuildSection() {
    buildNameView.setText(BuildConfig.VERSION_NAME);
    buildCodeView.setText(String.valueOf(BuildConfig.VERSION_CODE));
    buildShaView.setText(BuildConfig.GIT_SHA);
    TemporalAccessor buildTime = Instant.ofEpochSecond(BuildConfig.GIT_TIMESTAMP);
    buildDateView.setText(DATE_DISPLAY_FORMAT.format(buildTime));
}
Also used : TemporalAccessor(org.threeten.bp.temporal.TemporalAccessor)

Aggregations

TemporalAccessor (org.threeten.bp.temporal.TemporalAccessor)2