Skip to content

MongoDB data - 2000y ~ 2100y Korean calendar with Solar calendar, Lunar calendar, Day of week and Holiday

License

Notifications You must be signed in to change notification settings

gnokoheat/korean-calendar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

korean-calendar

GitHub GitHub release (latest by date) GitHub last commit

  • MongoDB BSON and JSON data of Korean calendar 🇰🇷
  • 2000y ~ 2100y Korean calendar with Solar calendar, Lunar calendar, Day of week and Holiday

Detail

1. BSON and JSON keys (Column)

  • sc : string, Solar calendar 양력
  • lc : string, Lunar calendar 음력
  • w : int, Day of week 요일 (1 : Sun, 2 : Mon, 3 : Tue, 4 : Wed, 5 : Thu, 6 : Fri, 7 : Sat)
  • h : bool, Holiday 휴일
  • ht : string, Holiday detail 휴일 내용

2. Data example

{
    "_id" : ObjectId("5dca1e4990837450133db3f6"),
    "sc" : "2000-01-01",
    "lc" : "1999-11-25",
    "w" : 7,
    "h" : true,
    "ht" : "신정"
}

Usage

  • Insert BSON or JSON data to MongoDB Collection
mongorestore -h 127.0.0.1:27017 -d mydb -c mycollection ./korean-calendar.bson

OR

mongoimport -h 127.0.0.1:27017 -d mydb -c mycollection --file ./korean-calendar.json

About

MongoDB data - 2000y ~ 2100y Korean calendar with Solar calendar, Lunar calendar, Day of week and Holiday

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published