Skip to content

Instantly share code, notes, and snippets.

@Kassan424kh
Last active March 30, 2023 12:04
Show Gist options
  • Save Kassan424kh/7c8fae0c0d8a1fdf17be0ef7988b9fe8 to your computer and use it in GitHub Desktop.
Save Kassan424kh/7c8fae0c0d8a1fdf17be0ef7988b9fe8 to your computer and use it in GitHub Desktop.
Convert .ini array to json
let JS_TIMES =
[
"-------------JAN-------------------------------",
"01-01~~~~~06:26|08:29|12:28|13:59|16:18|18:07",
"01-02~~~~~06:26|08:29|12:29|14:00|16:19|18:08",
"01-03~~~~~06:26|08:29|12:29|14:01|16:20|18:09",
"01-04~~~~~06:26|08:28|12:30|14:02|16:21|18:10",
"01-05~~~~~06:25|08:28|12:30|14:03|16:22|18:11",
"01-06~~~~~06:25|08:28|12:31|14:04|16:24|18:12",
"01-07~~~~~06:25|08:27|12:31|14:05|16:25|18:13",
"01-08~~~~~06:25|08:27|12:32|14:06|16:26|18:14",
"01-09~~~~~06:25|08:26|12:32|14:08|16:28|18:16",
"01-10~~~~~06:24|08:26|12:32|14:09|16:29|18:17",
"01-11~~~~~06:24|08:25|12:33|14:10|16:31|18:18",
"01-12~~~~~06:23|08:24|12:33|14:11|16:32|18:19",
"01-13~~~~~06:23|08:23|12:34|14:13|16:34|18:20",
"01-14~~~~~06:22|08:23|12:34|14:14|16:35|18:22",
"01-15~~~~~06:22|08:22|12:34|14:15|16:37|18:23",
"01-16~~~~~06:21|08:21|12:35|14:17|16:39|18:24",
"01-17~~~~~06:20|08:20|12:35|14:18|16:40|18:26",
"01-18~~~~~06:20|08:19|12:35|14:19|16:42|18:27",
"01-19~~~~~06:19|08:18|12:36|14:21|16:44|18:29",
"01-20~~~~~06:18|08:16|12:36|14:22|16:46|18:30",
"01-21~~~~~06:17|08:15|12:36|14:24|16:47|18:32",
"01-22~~~~~06:16|08:14|12:37|14:25|16:49|18:33",
"01-23~~~~~06:15|08:13|12:37|14:27|16:51|18:35",
"01-24~~~~~06:14|08:11|12:37|14:28|16:53|18:36",
"01-25~~~~~06:13|08:10|12:37|14:30|16:55|18:38",
"01-26~~~~~06:12|08:09|12:38|14:31|16:57|18:39",
"01-27~~~~~06:11|08:07|12:38|14:33|16:58|18:41",
"01-28~~~~~06:10|08:06|12:38|14:34|17:00|18:42",
"01-29~~~~~06:09|08:04|12:38|14:36|17:02|18:44",
"01-30~~~~~06:08|08:02|12:38|14:37|17:04|18:46",
"01-31~~~~~06:06|08:01|12:38|14:39|17:06|18:47",
"-------------FEB-------------------------------",
"02-01~~~~~06:05|07:59|12:39|14:40|17:08|18:49",
"02-02~~~~~06:04|07:58|12:39|14:42|17:10|18:50",
"02-03~~~~~06:02|07:56|12:39|14:43|17:12|18:52",
"02-04~~~~~06:01|07:54|12:39|14:45|17:14|18:54",
"02-05~~~~~05:59|07:52|12:39|14:46|17:16|18:55",
"02-06~~~~~05:58|07:50|12:39|14:48|17:18|18:57",
"02-07~~~~~05:56|07:49|12:39|14:50|17:20|18:59",
"02-08~~~~~05:55|07:47|12:39|14:51|17:22|19:01",
"02-09~~~~~05:53|07:45|12:39|14:53|17:24|19:02",
"02-10~~~~~05:51|07:43|12:39|14:54|17:26|19:04",
"02-11~~~~~05:50|07:41|12:39|14:56|17:28|19:06",
"02-12~~~~~05:48|07:39|12:39|14:57|17:30|19:07",
"02-13~~~~~05:46|07:37|12:39|14:59|17:32|19:09",
"02-14~~~~~05:44|07:35|12:39|15:00|17:34|19:11",
"02-15~~~~~05:42|07:33|12:39|15:02|17:36|19:13",
"02-16~~~~~05:40|07:31|12:39|15:03|17:38|19:15",
"02-17~~~~~05:39|07:29|12:39|15:05|17:40|19:16",
"02-18~~~~~05:37|07:27|12:39|15:06|17:42|19:18",
"02-19~~~~~05:35|07:25|12:39|15:08|17:44|19:20",
"02-20~~~~~05:33|07:22|12:39|15:09|17:45|19:22",
"02-21~~~~~05:31|07:20|12:39|15:11|17:47|19:24",
"02-22~~~~~05:28|07:18|12:39|15:12|17:49|19:25",
"02-23~~~~~05:26|07:16|12:39|15:14|17:51|19:27",
"02-24~~~~~05:24|07:14|12:38|15:15|17:53|19:29",
"02-25~~~~~05:22|07:11|12:38|15:16|17:55|19:31",
"02-26~~~~~05:20|07:09|12:38|15:18|17:57|19:33",
"02-27~~~~~05:18|07:07|12:38|15:19|17:59|19:35",
"02-28~~~~~05:15|07:05|12:38|15:21|18:01|19:37",
"02-29~~~~~05:13|07:03|12:38|15:22|18:01|19:38",
"-------------March-------------------------------",
"03-01~~~~~05:13|07:02|12:38|15:22|18:03|19:38",
"03-02~~~~~05:11|07:00|12:37|15:23|18:05|19:40",
"03-03~~~~~05:09|06:58|12:37|15:25|18:07|19:42",
"03-04~~~~~05:06|06:55|12:37|15:26|18:09|19:44",
"03-05~~~~~05:04|06:53|12:37|15:28|18:11|19:46",
"03-06~~~~~05:01|06:51|12:37|15:29|18:12|19:48",
"03-07~~~~~04:59|06:48|12:36|15:30|18:14|19:50",
"03-08~~~~~04:56|06:46|12:36|15:31|18:16|19:52",
"03-09~~~~~04:54|06:44|12:36|15:33|18:18|19:54",
"03-10~~~~~04:51|06:41|12:36|15:34|18:20|19:56",
"03-11~~~~~04:49|06:39|12:35|15:35|18:22|19:58",
"03-12~~~~~04:46|06:36|12:35|15:37|18:24|20:00",
"03-13~~~~~04:44|06:34|12:35|15:38|18:26|20:02",
"03-14~~~~~04:41|06:32|12:35|15:39|18:27|20:04",
"03-15~~~~~04:38|06:29|12:34|15:40|18:29|20:06",
"03-16~~~~~04:36|06:27|12:34|15:41|18:31|20:08",
"03-17~~~~~04:33|06:24|12:34|15:43|18:33|20:10",
"03-18~~~~~04:30|06:22|12:33|15:44|18:35|20:12",
"03-19~~~~~04:28|06:20|12:33|15:45|18:37|20:14",
"03-20~~~~~04:25|06:17|12:33|15:46|18:39|20:16",
"03-21~~~~~04:22|06:15|12:33|15:47|18:40|20:18",
"03-22~~~~~04:19|06:12|12:32|15:48|18:42|20:20",
"03-23~~~~~04:17|06:10|12:32|15:49|18:44|20:22",
"03-24~~~~~04:14|06:07|12:32|15:51|18:46|20:25",
"03-25~~~~~04:11|06:05|12:31|15:52|18:48|20:27",
"03-26~~~~~05:08|07:03|13:31|16:53|19:50|21:29",
"03-27~~~~~05:05|07:00|13:31|16:54|19:51|21:31",
"03-28~~~~~05:02|06:58|13:30|16:55|19:53|21:33",
"03-29~~~~~04:59|06:55|13:30|16:56|19:55|21:36",
"03-30~~~~~04:56|06:53|13:30|16:57|19:57|21:38",
"03-31~~~~~04:53|06:50|13:30|16:58|19:59|21:40",
"-------------April-------------------------------",
"04-01~~~~~04:50|06:48|13:29|16:59|20:01|21:42",
"04-02~~~~~04:47|06:46|13:29|17:00|20:02|21:45",
"04-03~~~~~04:44|06:43|13:29|17:01|20:04|21:47",
"04-04~~~~~04:41|06:41|13:28|17:02|20:06|21:50",
"04-05~~~~~04:38|06:38|13:28|17:03|20:08|21:52",
"04-06~~~~~04:34|06:36|13:28|17:04|20:10|21:54",
"04-07~~~~~04:31|06:34|13:27|17:05|20:11|21:57",
"04-08~~~~~04:28|06:31|13:27|17:06|20:13|21:59",
"04-09~~~~~04:25|06:29|13:27|17:07|20:15|22:02",
"04-10~~~~~04:21|06:26|13:27|17:08|20:17|22:04",
"04-11~~~~~04:18|06:24|13:26|17:09|20:19|22:07",
"04-12~~~~~04:15|06:22|13:26|17:09|20:21|22:09",
"04-13~~~~~04:11|06:19|13:26|17:10|20:22|22:12",
"04-14~~~~~04:08|06:17|13:26|17:11|20:24|22:15",
"04-15~~~~~04:04|06:15|13:25|17:12|20:26|22:17",
"04-16~~~~~04:02|06:12|13:25|17:13|20:28|22:20",
"04-17~~~~~04:01|06:10|13:25|17:14|20:30|22:21",
"04-18~~~~~04:00|06:08|13:25|17:15|20:31|22:22",
"04-19~~~~~04:00|06:06|13:24|17:16|20:33|22:22",
"04-20~~~~~03:59|06:03|13:24|17:16|20:35|22:23",
"04-21~~~~~03:58|06:01|13:24|17:17|20:37|22:24",
"04-22~~~~~03:58|05:59|13:24|17:18|20:39|22:25",
"04-23~~~~~03:57|05:57|13:24|17:19|20:41|22:25",
"04-24~~~~~03:56|05:54|13:23|17:20|20:42|22:26",
"04-25~~~~~03:56|05:52|13:23|17:20|20:44|22:27",
"04-26~~~~~03:55|05:50|13:23|17:21|20:46|22:27",
"04-27~~~~~03:54|05:48|13:23|17:22|20:48|22:28",
"04-28~~~~~03:53|05:46|13:23|17:23|20:50|22:29",
"04-29~~~~~03:53|05:44|13:23|17:24|20:51|22:30",
"04-30~~~~~03:52|05:42|13:22|17:24|20:53|22:30",
"-------------MAY-------------------------------",
"05-01~~~~~03:51|05:40|13:22|17:25|20:55|22:31",
"05-02~~~~~03:51|05:38|13:22|17:26|20:57|22:32",
"05-03~~~~~03:50|05:36|13:22|17:27|20:59|22:32",
"05-04~~~~~03:49|05:34|13:22|17:27|21:00|22:33",
"05-05~~~~~03:49|05:32|13:22|17:28|21:02|22:34",
"05-06~~~~~03:48|05:30|13:22|17:29|21:04|22:35",
"05-07~~~~~03:47|05:28|13:22|17:30|21:06|22:35",
"05-08~~~~~03:47|05:26|13:22|17:30|21:07|22:36",
"05-09~~~~~03:46|05:24|13:22|17:31|21:09|22:37",
"05-10~~~~~03:45|05:22|13:22|17:32|21:11|22:37",
"05-11~~~~~03:45|05:21|13:22|17:32|21:13|22:38",
"05-12~~~~~03:44|05:19|13:22|17:33|21:14|22:39",
"05-13~~~~~03:43|05:17|13:22|17:34|21:16|22:40",
"05-14~~~~~03:42|05:15|13:21|17:34|21:18|22:40",
"05-15~~~~~03:42|05:14|13:22|17:35|21:19|22:41",
"05-16~~~~~03:41|05:12|13:22|17:36|21:21|22:42",
"05-17~~~~~03:40|05:10|13:22|17:36|21:23|22:43",
"05-18~~~~~03:39|05:09|13:22|17:37|21:24|22:44",
"05-19~~~~~03:38|05:07|13:22|17:38|21:26|22:45",
"05-20~~~~~03:37|05:06|13:22|17:38|21:27|22:46",
"05-21~~~~~03:36|05:04|13:22|17:39|21:29|22:47",
"05-22~~~~~03:35|05:03|13:22|17:39|21:30|22:48",
"05-23~~~~~03:35|05:02|13:22|17:40|21:32|22:49",
"05-24~~~~~03:34|05:00|13:22|17:41|21:33|22:50",
"05-25~~~~~03:33|04:59|13:22|17:41|21:35|22:51",
"05-26~~~~~03:32|04:58|13:22|17:42|21:36|22:52",
"05-27~~~~~03:32|04:57|13:22|17:42|21:38|22:53",
"05-28~~~~~03:31|04:56|13:22|17:43|21:39|22:54",
"05-29~~~~~03:30|04:54|13:22|17:44|21:40|22:55",
"05-30~~~~~03:30|04:53|13:23|17:44|21:42|22:56",
"05-31~~~~~03:29|04:52|13:23|17:45|21:43|22:57",
"-------------June-------------------------------",
"06-01~~~~~03:29|04:52|13:23|17:45|21:44|22:58",
"06-02~~~~~03:28|04:51|13:23|17:46|21:45|22:59",
"06-03~~~~~03:28|04:50|13:23|17:46|21:47|23:00",
"06-04~~~~~03:27|04:49|13:23|17:47|21:48|23:00",
"06-05~~~~~03:27|04:48|13:24|17:47|21:49|23:01",
"06-06~~~~~03:27|04:48|13:24|17:48|21:50|23:02",
"06-07~~~~~03:26|04:47|13:24|17:48|21:51|23:03",
"06-08~~~~~03:26|04:46|13:24|17:48|21:52|23:03",
"06-09~~~~~03:26|04:46|13:24|17:49|21:53|23:04",
"06-10~~~~~03:26|04:45|13:24|17:49|21:54|23:05",
"06-11~~~~~03:25|04:45|13:25|17:50|21:54|23:05",
"06-12~~~~~03:25|04:45|13:25|17:50|21:55|23:06",
"06-13~~~~~03:25|04:44|13:25|17:50|21:56|23:06",
"06-14~~~~~03:25|04:44|13:25|17:51|21:57|23:07",
"06-15~~~~~03:25|04:44|13:26|17:51|21:57|23:07",
"06-16~~~~~03:25|04:44|13:26|17:51|21:58|23:08",
"06-17~~~~~03:25|04:44|13:26|17:52|21:58|23:08",
"06-18~~~~~03:25|04:44|13:26|17:52|21:59|23:08",
"06-19~~~~~03:25|04:44|13:26|17:52|21:59|23:09",
"06-20~~~~~03:25|04:44|13:27|17:53|21:59|23:09",
"06-21~~~~~03:26|04:44|13:27|17:53|22:00|23:09",
"06-22~~~~~03:26|04:44|13:27|17:53|22:00|23:10",
"06-23~~~~~03:26|04:44|13:27|17:53|22:00|23:10",
"06-24~~~~~03:26|04:45|13:27|17:53|22:00|23:10",
"06-25~~~~~03:27|04:45|13:28|17:54|22:00|23:10",
"06-26~~~~~03:27|04:46|13:28|17:54|22:00|23:10",
"06-27~~~~~03:27|04:46|13:28|17:54|22:00|23:10",
"06-28~~~~~03:28|04:47|13:28|17:54|22:00|23:10",
"06-29~~~~~03:28|04:47|13:29|17:54|22:00|23:10",
"06-30~~~~~03:29|04:48|13:29|17:54|22:00|23:10",
"-------------July-------------------------------",
"07-01~~~~~03:29|04:48|13:29|17:54|21:59|23:10",
"07-02~~~~~03:30|04:49|13:29|17:54|21:59|23:10",
"07-03~~~~~03:30|04:50|13:29|17:54|21:59|23:09",
"07-04~~~~~03:31|04:51|13:29|17:54|21:58|23:09",
"07-05~~~~~03:31|04:52|13:30|17:54|21:58|23:09",
"07-06~~~~~03:32|04:53|13:30|17:54|21:57|23:09",
"07-07~~~~~03:33|04:54|13:30|17:54|21:56|23:08",
"07-08~~~~~03:33|04:55|13:30|17:54|21:56|23:08",
"07-09~~~~~03:34|04:56|13:30|17:54|21:55|23:07",
"07-10~~~~~03:35|04:57|13:30|17:53|21:54|23:07",
"07-11~~~~~03:36|04:58|13:31|17:53|21:53|23:06",
"07-12~~~~~03:36|04:59|13:31|17:53|21:52|23:06",
"07-13~~~~~03:37|05:00|13:31|17:53|21:51|23:05",
"07-14~~~~~03:38|05:01|13:31|17:53|21:50|23:05",
"07-15~~~~~03:39|05:03|13:31|17:52|21:49|23:04",
"07-16~~~~~03:40|05:04|13:31|17:52|21:48|23:03",
"07-17~~~~~03:40|05:05|13:31|17:52|21:47|23:03",
"07-18~~~~~03:41|05:07|13:31|17:51|21:46|23:02",
"07-19~~~~~03:42|05:08|13:31|17:51|21:45|23:01",
"07-20~~~~~03:43|05:10|13:32|17:50|21:44|23:00",
"07-21~~~~~03:44|05:11|13:32|17:50|21:42|22:59",
"07-22~~~~~03:45|05:12|13:32|17:50|21:41|22:59",
"07-23~~~~~03:46|05:14|13:32|17:49|21:39|22:58",
"07-24~~~~~03:47|05:15|13:32|17:49|21:38|22:57",
"07-25~~~~~03:48|05:17|13:32|17:48|21:36|22:56",
"07-26~~~~~03:49|05:18|13:32|17:47|21:35|22:55",
"07-27~~~~~03:50|05:20|13:32|17:47|21:33|22:54",
"07-28~~~~~03:51|05:22|13:32|17:46|21:32|22:53",
"07-29~~~~~03:52|05:23|13:32|17:45|21:30|22:52",
"07-30~~~~~03:52|05:25|13:32|17:45|21:29|22:51",
"07-31~~~~~03:53|05:26|13:32|17:44|21:27|22:50",
"-------------Aug-------------------------------",
"08-01~~~~~03:54|05:28|13:32|17:43|21:25|22:49",
"08-02~~~~~03:54|05:30|13:31|17:43|21:23|22:48",
"08-03~~~~~03:55|05:31|13:31|17:42|21:21|22:47",
"08-04~~~~~03:56|05:33|13:31|17:41|21:20|22:47",
"08-05~~~~~03:56|05:35|13:31|17:40|21:18|22:46",
"08-06~~~~~03:57|05:36|13:31|17:39|21:16|22:45",
"08-07~~~~~03:57|05:38|13:31|17:38|21:14|22:44",
"08-08~~~~~03:58|05:40|13:31|17:38|21:12|22:44",
"08-09~~~~~03:59|05:41|13:31|17:37|21:10|22:43",
"08-10~~~~~03:59|05:43|13:31|17:36|21:08|22:42",
"08-11~~~~~04:00|05:45|13:30|17:35|21:06|22:41",
"08-12~~~~~04:01|05:47|13:30|17:34|21:04|22:41",
"08-13~~~~~04:01|05:48|13:30|17:33|21:02|22:40",
"08-14~~~~~04:02|05:50|13:30|17:32|21:00|22:39",
"08-15~~~~~04:02|05:52|13:30|17:30|20:58|22:38",
"08-16~~~~~04:03|05:54|13:30|17:29|20:56|22:37",
"08-17~~~~~04:04|05:55|13:29|17:28|20:54|22:37",
"08-18~~~~~04:04|05:57|13:29|17:27|20:51|22:36",
"08-19~~~~~04:05|05:59|13:29|17:26|20:49|22:35",
"08-20~~~~~04:06|06:00|13:29|17:25|20:47|22:34",
"08-21~~~~~04:06|06:02|13:28|17:23|20:45|22:34",
"08-22~~~~~04:07|06:04|13:28|17:22|20:43|22:33",
"08-23~~~~~04:07|06:06|13:28|17:21|20:40|22:32",
"08-24~~~~~04:08|06:07|13:28|17:20|20:38|22:31",
"08-25~~~~~04:09|06:09|13:27|17:18|20:36|22:31",
"08-26~~~~~04:09|06:11|13:27|17:17|20:33|22:27",
"08-27~~~~~04:10|06:13|13:27|17:16|20:31|22:24",
"08-28~~~~~04:11|06:14|13:27|17:14|20:29|22:21",
"08-29~~~~~04:11|06:16|13:26|17:13|20:26|22:18",
"08-30~~~~~04:12|06:18|13:26|17:11|20:24|22:14",
"08-31~~~~~04:12|06:20|13:26|17:10|20:22|22:11",
"-------------Sept-------------------------------",
"09-01~~~~~04:14|06:21|13:25|17:08|20:19|22:08",
"09-02~~~~~04:17|06:23|13:25|17:07|20:17|22:05",
"09-03~~~~~04:20|06:25|13:25|17:06|20:15|22:02",
"09-04~~~~~04:23|06:27|13:24|17:04|20:12|21:59",
"09-05~~~~~04:25|06:28|13:24|17:02|20:10|21:56",
"09-06~~~~~04:28|06:30|13:24|17:01|20:07|21:53",
"09-07~~~~~04:30|06:32|13:23|16:59|20:05|21:50",
"09-08~~~~~04:33|06:34|13:23|16:58|20:03|21:47",
"09-09~~~~~04:35|06:35|13:23|16:56|20:00|21:44",
"09-10~~~~~04:38|06:37|13:22|16:55|19:58|21:41",
"09-11~~~~~04:40|06:39|13:22|16:53|19:55|21:38",
"09-12~~~~~04:42|06:40|13:22|16:51|19:53|21:35",
"09-13~~~~~04:45|06:42|13:21|16:50|19:50|21:32",
"09-14~~~~~04:47|06:44|13:21|16:48|19:48|21:29",
"09-15~~~~~04:49|06:46|13:21|16:46|19:46|21:26",
"09-16~~~~~04:52|06:47|13:20|16:45|19:43|21:23",
"09-17~~~~~04:54|06:49|13:20|16:43|19:41|21:20",
"09-18~~~~~04:56|06:51|13:20|16:41|19:38|21:18",
"09-19~~~~~04:58|06:53|13:19|16:40|19:36|21:15",
"09-20~~~~~05:01|06:54|13:19|16:38|19:33|21:12",
"09-21~~~~~05:03|06:56|13:18|16:36|19:31|21:09",
"09-22~~~~~05:05|06:58|13:18|16:34|19:28|21:06",
"09-23~~~~~05:07|07:00|13:18|16:33|19:26|21:04",
"09-24~~~~~05:09|07:01|13:17|16:31|19:24|21:01",
"09-25~~~~~05:11|07:03|13:17|16:29|19:21|20:58",
"09-26~~~~~05:13|07:05|13:17|16:27|19:19|20:56",
"09-27~~~~~05:15|07:07|13:16|16:26|19:16|20:53",
"09-28~~~~~05:17|07:08|13:16|16:24|19:14|20:50",
"09-29~~~~~05:19|07:10|13:16|16:22|19:11|20:48",
"09-30~~~~~05:21|07:12|13:15|16:20|19:09|20:45",
"-------------Oct-------------------------------",
"10-01~~~~~05:23|07:14|13:15|16:18|19:06|20:43",
"10-02~~~~~05:25|07:15|13:15|16:17|19:04|20:40",
"10-03~~~~~05:27|07:17|13:14|16:15|19:02|20:37",
"10-04~~~~~05:29|07:19|13:14|16:13|18:59|20:35",
"10-05~~~~~05:31|07:21|13:14|16:11|18:57|20:32",
"10-06~~~~~05:33|07:23|13:13|16:09|18:54|20:30",
"10-07~~~~~05:35|07:24|13:13|16:08|18:52|20:28",
"10-08~~~~~05:37|07:26|13:13|16:06|18:50|20:25",
"10-09~~~~~05:39|07:28|13:13|16:04|18:47|20:23",
"10-10~~~~~05:41|07:30|13:12|16:02|18:45|20:20",
"10-11~~~~~05:42|07:32|13:12|16:00|18:42|20:18",
"10-12~~~~~05:44|07:33|13:12|15:59|18:40|20:16",
"10-13~~~~~05:46|07:35|13:12|15:57|18:38|20:13",
"10-14~~~~~05:48|07:37|13:11|15:55|18:36|20:11",
"10-15~~~~~05:50|07:39|13:11|15:53|18:33|20:09",
"10-16~~~~~05:52|07:41|13:11|15:51|18:31|20:07",
"10-17~~~~~05:53|07:43|13:11|15:50|18:29|20:04",
"10-18~~~~~05:55|07:45|13:10|15:48|18:26|20:02",
"10-19~~~~~05:57|07:46|13:10|15:46|18:24|20:00",
"10-20~~~~~05:59|07:48|13:10|15:44|18:22|19:58",
"10-21~~~~~06:01|07:50|13:10|15:43|18:20|19:56",
"10-22~~~~~06:02|07:52|13:10|15:41|18:17|19:54",
"10-23~~~~~06:04|07:54|13:10|15:39|18:15|19:52",
"10-24~~~~~06:06|07:56|13:09|15:38|18:13|19:50",
"10-25~~~~~06:08|07:58|13:09|15:36|18:11|19:48",
"10-26~~~~~06:09|08:00|13:09|15:34|18:09|19:46",
"10-27~~~~~06:11|08:01|13:09|15:33|18:07|19:44",
"10-28~~~~~06:13|08:03|13:09|15:31|18:05|19:42",
"10-29~~~~~05:14|07:05|12:09|14:29|17:03|18:40",
"10-30~~~~~05:16|07:07|12:09|14:28|17:01|18:38",
"10-31~~~~~05:18|07:09|12:09|14:26|16:59|18:36",
"-------------Nov-------------------------------",
"11-01~~~~~05:19|07:11|12:09|14:25|16:57|18:35",
"11-02~~~~~05:21|07:13|12:09|14:23|16:55|18:33",
"11-03~~~~~05:23|07:15|12:09|14:22|16:53|18:31",
"11-04~~~~~05:24|07:17|12:09|14:20|16:51|18:30",
"11-05~~~~~05:26|07:19|12:09|14:19|16:49|18:28",
"11-06~~~~~05:28|07:21|12:09|14:17|16:47|18:26",
"11-07~~~~~05:29|07:22|12:09|14:16|16:45|18:25",
"11-08~~~~~05:31|07:24|12:09|14:14|16:43|18:23",
"11-09~~~~~05:33|07:26|12:09|14:13|16:42|18:22",
"11-10~~~~~05:34|07:28|12:09|14:12|16:40|18:20",
"11-11~~~~~05:36|07:30|12:09|14:10|16:38|18:19",
"11-12~~~~~05:37|07:32|12:09|14:09|16:36|18:18",
"11-13~~~~~05:39|07:34|12:09|14:08|16:35|18:16",
"11-14~~~~~05:40|07:36|12:09|14:07|16:33|18:15",
"11-15~~~~~05:42|07:37|12:10|14:06|16:32|18:14",
"11-16~~~~~05:43|07:39|12:10|14:04|16:30|18:13",
"11-17~~~~~05:45|07:41|12:10|14:03|16:29|18:11",
"11-18~~~~~05:46|07:43|12:10|14:02|16:27|18:10",
"11-19~~~~~05:48|07:45|12:10|14:01|16:26|18:09",
"11-20~~~~~05:49|07:47|12:11|14:00|16:25|18:08",
"11-21~~~~~05:51|07:48|12:11|13:59|16:23|18:07",
"11-22~~~~~05:52|07:50|12:11|13:58|16:22|18:06",
"11-23~~~~~05:54|07:52|12:11|13:57|16:21|18:05",
"11-24~~~~~05:55|07:54|12:12|13:57|16:20|18:05",
"11-25~~~~~05:56|07:55|12:12|13:56|16:18|18:04",
"11-26~~~~~05:58|07:57|12:12|13:55|16:17|18:03",
"11-27~~~~~05:59|07:59|12:13|13:54|16:16|18:02",
"11-28~~~~~06:00|08:00|12:13|13:54|16:15|18:02",
"11-29~~~~~06:02|08:02|12:13|13:53|16:15|18:01",
"11-30~~~~~06:03|08:03|12:14|13:53|16:14|18:00",
"-------------Dec-------------------------------",
"12-01~~~~~06:04|08:05|12:14|13:52|16:13|18:00",
"12-02~~~~~06:05|08:06|12:14|13:52|16:12|17:59",
"12-03~~~~~06:06|08:08|12:15|13:51|16:11|17:59",
"12-04~~~~~06:08|08:09|12:15|13:51|16:11|17:59",
"12-05~~~~~06:09|08:11|12:15|13:50|16:10|17:58",
"12-06~~~~~06:10|08:12|12:16|13:50|16:10|17:58",
"12-07~~~~~06:11|08:13|12:16|13:50|16:09|17:58",
"12-08~~~~~06:12|08:15|12:17|13:50|16:09|17:58",
"12-09~~~~~06:13|08:16|12:17|13:49|16:08|17:57",
"12-10~~~~~06:14|08:17|12:18|13:49|16:08|17:57",
"12-11~~~~~06:15|08:18|12:18|13:49|16:08|17:57",
"12-12~~~~~06:16|08:19|12:18|13:49|16:08|17:57",
"12-13~~~~~06:17|08:20|12:19|13:49|16:08|17:57",
"12-14~~~~~06:17|08:21|12:19|13:49|16:08|17:57",
"12-15~~~~~06:18|08:22|12:20|13:50|16:08|17:58",
"12-16~~~~~06:19|08:23|12:20|13:50|16:08|17:58",
"12-17~~~~~06:20|08:24|12:21|13:50|16:08|17:58",
"12-18~~~~~06:20|08:25|12:21|13:50|16:08|17:58",
"12-19~~~~~06:21|08:25|12:22|13:51|16:08|17:59",
"12-20~~~~~06:22|08:26|12:22|13:51|16:09|17:59",
"12-21~~~~~06:22|08:27|12:23|13:51|16:09|17:59",
"12-22~~~~~06:23|08:27|12:23|13:52|16:10|18:00",
"12-23~~~~~06:23|08:28|12:24|13:52|16:10|18:00",
"12-24~~~~~06:24|08:28|12:24|13:53|16:11|18:01",
"12-25~~~~~06:24|08:28|12:25|13:54|16:11|18:02",
"12-26~~~~~06:24|08:29|12:25|13:54|16:12|18:02",
"12-27~~~~~06:25|08:29|12:26|13:55|16:13|18:03",
"12-28~~~~~06:25|08:29|12:26|13:56|16:14|18:04",
"12-29~~~~~06:25|08:29|12:27|13:56|16:14|18:04",
"12-30~~~~~06:25|08:29|12:27|13:57|16:15|18:05",
"12-31~~~~~06:26|08:29|12:28|13:58|16:16|18:06",
];
const months = [
"Jan",
"Feb",
"Mar",
"Apr",
"May",
"Jun",
"Jul",
"Aug",
"Sep",
"Oct",
"Nov",
"Dec"
]
const JS_TIMES_CONVERTED = JS_TIMES.map(t => {
if (t.includes("-------------"))
return "###"
return t
}).join(" ").split("###").filter(Boolean).map(monthTime => {
return monthTime.split(" ").filter(Boolean)
}).reduce((obj, item, index) => {
obj[months[index]] = item
return obj
}, {})
console.log(JS_TIMES_CONVERTED)
const json = {}
console.log(JS_TIMES_CONVERTED)
Object.entries(JS_TIMES_CONVERTED).forEach(([key, value]) => {
json[key] = value.reduce((ob, item) => {
const date = item.split("~~~~~").at(0)
const pTimes = item.split("~~~~~").at(1).split("|")
ob[date] = pTimes
return ob
}, {})
})
console.log(json)
console.log(JSON.stringify(json))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment