Created
January 13, 2013 09:03
-
-
Save debop/4523082 to your computer and use it in GitHub Desktop.
DayOfWeek
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package kr.kth.timeperiod | |
import org.joda.time.DateTimeConstants | |
/** | |
* 한 주의 요일을 표현합니다. | |
* User: [email protected] | |
* Date: 13. 1. 13. | |
*/ | |
object ScalaDayOfWeek extends Enumeration { | |
type ScalaDayOfWeek = Value | |
// NOTE: withName, apply 메소드를 사용하세요 | |
val Monday = Value(DateTimeConstants.MONDAY, "Monday") | |
val Tuesday = Value(DateTimeConstants.TUESDAY, "Tuesday") | |
val Wednesday = Value(DateTimeConstants.WEDNESDAY, "Wednesday") | |
val Thursday = Value(DateTimeConstants.THURSDAY, "Thursday") | |
val Friday = Value(DateTimeConstants.FRIDAY, "Friday") | |
val Saturday = Value(DateTimeConstants.SATURDAY, "Saturday") | |
val Sunday = Value(DateTimeConstants.SUNDAY, "Sunday") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment