This file contains 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
var moment = Moment.moment; | |
var LOCAL_TZ_SUFFIX = '+09:00'; // タイムゾーの接尾辞 | |
var TOTAL_DAYS = 14; // 空き時間を取得する日数 | |
var MINUTES_PER_TIMESLOT = 30; // タイムスロットの分数 | |
var TIMESLOTS_PER_DAY = 60 * 24 / MINUTES_PER_TIMESLOT; // 1日あたりのタイムスロット数 | |
var JAPANESE_HOLIDAY_CALENDAR_ID = 'ja.japanese#holiday@group.v.calendar.google.com'; // 日本の祝日のカレンダーID | |
/** | |
* メインの処理。Googleカレンダーの予定をもとに、スプレッドシートに作業可能時間を出力する。 | |
*/ |