- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for YYYY (0.15 sec)
-
build-logic-commons/module-identity/src/main/kotlin/gradlebuild/identity/provider/BuildTimestampValueSource.kt
runningOnCi.get() -> "from current time because CI" else -> "from current date" } } private fun Date.withoutTime(): Date = SimpleDateFormat("yyyy-MM-dd").run { parse(format(this@withoutTime)) }
Plain Text - Registered: Wed May 01 11:36:15 GMT 2024 - Last Modified: Sat Sep 30 16:17:28 GMT 2023 - 3.1K bytes - Viewed (0) -
build-logic-commons/module-identity/src/main/kotlin/gradlebuild/identity/tasks/BuildReceipt.kt
abstract class BuildReceipt : DefaultTask() { companion object { private val timestampFormat = newSimpleDateFormatUTC("yyyyMMddHHmmssZ") private val isoTimestampFormat = newSimpleDateFormatUTC("yyyy-MM-dd HH:mm:ss z") private fun newSimpleDateFormatUTC(pattern: String) = SimpleDateFormat(pattern).apply { timeZone = TimeZone.getTimeZone("UTC") }
Plain Text - Registered: Wed May 01 11:36:15 GMT 2024 - Last Modified: Sat Sep 30 16:17:28 GMT 2023 - 4.2K bytes - Viewed (0)