gnokoheat / korean-calendar

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:MIT License