Giter VIP home page Giter VIP logo

calendar's Introduction

calendar parser

A human editable (.txt) and machine readable (.ics) calendar-list.

You can create a text with dates:

21.3.2016, 10–11, Meeting
22.3.2016, Birthday

This will result in two calendar entries. The first is titled "Meeting" and has a time-range, the second is a whole day event with a title of "Birthday".

If you have many repeating events you can also have a template-like header:

---
title:
  prefix: "Meetup"
  join: " – "
date: 18:00–22:00
notes: bring beer.
---
22.2.2016, HTML
29.2.2016, JS

This will produce two events, one with the Title Meetup – HTML and one with Meetup – JS. Both have a note and a time-range.

Similar Projects

ToDo

calendar's People

Contributors

signalwerk avatar dependabot[bot] avatar alexjenter avatar

Stargazers

stromberg avatar  avatar

Watchers

 avatar  avatar

Forkers

alexjenter

calendar's Issues

Handle different Separators

If the information units are clear accept different separators

Test

Vorverkaufsstart: Freitag, 08.11.2019 - 10.00 Uhr

Wrong whole day detaction

Wrong whole day detaction. This get's added a day to early

17. Mai 2020, Abstimmung im Kreiswahlbüro 4+5
27. September 2020, Abstimmung im Kreiswahlbüro 4+5
29. November 2020, Abstimmung im Kreiswahlbüro 4+5

Event Time Hours need to be at least 2 decimals

when the hour place of the time string is not at least 2 decimals long, the time leaks into the Title field and the Title data goes missing

---
title:
  prefix: "idH"
---
17.8.2020, 7:30-8:15, Hello world

is:

idH – 7:30-8:15
📅 17.8.2020 – 17.8.2020

Debug-Infos
{
  "date": {
    "from": {
      "day": 17,
      "month": 8,
      "year": 2020
    },
    "to": {
      "day": 17,
      "month": 8,
      "year": 2020
    }
  },
  "title": "idH – 7:30-8:15",
  "notes": "",
  "location": "Switzerland",
  "url": ""
}

should be:

idH – Hello world
📅 17.8.2020 7:30 – 17.8.2020 8:15

Debug-Infos
{
  "date": {
    "from": {
      "hour": 7,
      "minute": 30,
      "day": 17,
      "month": 8,
      "year": 2020
    },
    "to": {
      "hour": 8,
      "minute": 15,
      "day": 17,
      "month": 8,
      "year": 2020
    }
  },
  "title": "idH – Hello world",
  "notes": "",
  "location": "Switzerland",
  "url": ""
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.