INNER CODE UNIT · TypeScript

DATE

rowboatlabs/rowboat · apps/harbor/packages/server/src/connectors/cal/index.ts:121

const DATE = /^\d{4}-\d{2}-\d{2}$/;

const commands: Command<CalApi>[] = [
  {
    name: 'today',
    summary: "today's bookings",
    async run(api) {
      const { timeZone } = await api.profile();
      const d = today(timeZone);
      return bookingsOn(api, d, nextDate(d), 'Nothing booked today.', 'Today:');
    },
  },
  {
    name: 'tomorrow',
    summary: "tomorrow's bookings",
    async run(api) {
      const { timeZone } = await api.profile();
      const d = nextDate(today(timeZone));

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…