项目作者: naz013

项目描述 :
Useful java.util.Calendar and java.util.Date Kotlin extension functions for Android
高级语言: Kotlin
项目地址: git://github.com/naz013/android-calendar-ext.git
创建时间: 2020-05-21T18:29:40Z
项目社区:https://github.com/naz013/android-calendar-ext

开源协议:Apache License 2.0

下载


Android Calendar extension functions

Useful java.util.Calendar and java.util.Date Kotlin extension functions for Android

Download

Download latest version with Gradle:

  1. repositories {
  2. maven { url 'https://jitpack.io' }
  3. }
  4. dependencies {
  5. implementation 'com.github.naz013:android-calendar-ext:1.0.4'
  6. }

List of java.util.Calendar extension functions

  1. dropSeconds()
  2. dropMilliseconds()
  3. isAfter(calendar)
  4. isBefore(calendar)
  5. diffInMillis(calendar)
  6. diffInDays(calendar)
  7. isExactlySame(calendar)
  8. isSameDateAndTime(calendar)
  9. isSameTime(calendar)
  10. isSameDate(calendar)
  11. isLastDayOfMonth()
  12. isDecember()
  13. isNovember()
  14. isOctober()
  15. isSeptember()
  16. isAugust()
  17. isJuly()
  18. isJune()
  19. isMay()
  20. isApril()
  21. isMarch()
  22. isFebruary()
  23. isJanuary()
  24. isMonth(month)
  25. isSaturday()
  26. isFriday()
  27. isThursday()
  28. isWednesday()
  29. isTuesday()
  30. isMonday()
  31. isSunday()
  32. isDayOfWeek(dayOfWeek)
  33. setTime(hourOfDay, minute, second)
  34. takeTimeFrom(calendar)
  35. takeTimeFrom(date)
  36. setDate(year, month, dayOfMonth)
  37. takeDateFrom(calendar)
  38. takeDateFrom(date)
  39. setMillis(millis)
  40. addMillis(millis)
  41. setMillisecond(millisecond)
  42. getLastDayOfMonth()
  43. getMillisecond()
  44. setSecond(second)
  45. getSecond()
  46. setMinute(minute)
  47. getMinute()
  48. setHour(hour)
  49. getHour()
  50. setHourOfDay(hourOfDay)
  51. getHourOfDay()
  52. setDayOfMonth(dayOfMonth)
  53. getDayOfMonth()
  54. setDayOfWeek(dayOfWeek)
  55. getDayOfWeek()
  56. setDayOfYear(dayOfYear)
  57. getDayOfYear()
  58. setMonth(month)
  59. getMonth()
  60. setYear(year)
  61. getYear()
  62. addSecond()
  63. addSeconds(seconds)
  64. addMinute()
  65. addMinutes(minutes)
  66. addHourOfDay()
  67. addHoursOfDay(hours)
  68. addDayOfMonth()
  69. addDaysOfMonth(days)
  70. addMonth()
  71. addMonths(months)
  72. addYear()
  73. addYears(years)
  74. copy()

List of java.util.Date extension functions

  1. isSameDateAndTime(date)
  2. isSameTime(date)
  3. isSameDate(date)
  4. isSame(date)
  5. diffInDaysFrom(date)
  6. diffInDaysTo(date)
  7. second()
  8. minute()
  9. hour()
  10. hourOfDay()
  11. year()
  12. month()
  13. dayOfMonth()

License

  1. Copyright 2020 Nazar Sukhovych
  2. Licensed under the Apache License, Version 2.0 (the "License");
  3. you may not use this file except in compliance with the License.
  4. You may obtain a copy of the License at
  5. http://www.apache.org/licenses/LICENSE-2.0
  6. Unless required by applicable law or agreed to in writing, software
  7. distributed under the License is distributed on an "AS IS" BASIS,
  8. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  9. See the License for the specific language governing permissions and
  10. limitations under the License.