All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.jetbrains.datalore.base.dateFormat.DateLocale.kt Maven / Gradle / Ivy

There is a newer version: 4.5.3-alpha1
Show newest version
/*
 * Copyright (c) 2019. JetBrains s.r.o.
 * Use of this source code is governed by the MIT license that can be found in the LICENSE file.
 */

package jetbrains.datalore.base.dateFormat

import jetbrains.datalore.base.datetime.Month
import jetbrains.datalore.base.datetime.WeekDay

object DateLocale {
    val weekDayAbbr = mapOf(
        WeekDay.MONDAY to "Mon",
        WeekDay.TUESDAY to "Tue",
        WeekDay.WEDNESDAY to "Wed",
        WeekDay.THURSDAY to "Thu",
        WeekDay.FRIDAY to "Fri",
        WeekDay.SATURDAY to "Sat",
        WeekDay.SUNDAY to "Sun"
    )

    val weekDayFull = mapOf(
        WeekDay.MONDAY to "Monday",
        WeekDay.TUESDAY to "Tuesday",
        WeekDay.WEDNESDAY to "Wednesday",
        WeekDay.THURSDAY to "Thursday",
        WeekDay.FRIDAY to "Friday",
        WeekDay.SATURDAY to "Saturday",
        WeekDay.SUNDAY to "Sunday"
    )

    val monthAbbr = mapOf(
        Month.JANUARY to "Jan",
        Month.FEBRUARY to "Feb",
        Month.MARCH to "Mar",
        Month.APRIL to "Apr",
        Month.MAY to "May",
        Month.JUNE to "Jun",
        Month.JULY to "Jul",
        Month.AUGUST to "Aug",
        Month.SEPTEMBER to "Sep",
        Month.OCTOBER to "Oct",
        Month.NOVEMBER to "Nov",
        Month.DECEMBER to "Dec"
    )

    val monthFull = mapOf(
        Month.JANUARY to "January",
        Month.FEBRUARY to "February",
        Month.MARCH to "March",
        Month.APRIL to "April",
        Month.MAY to "May",
        Month.JUNE to "June",
        Month.JULY to "July",
        Month.AUGUST to "August",
        Month.SEPTEMBER to "September",
        Month.OCTOBER to "October",
        Month.NOVEMBER to "November",
        Month.DECEMBER to "December"
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy