mirror of
https://github.com/foo-dogsquared/wiki.git
synced 2025-01-31 07:57:57 +00:00
1 line
9.1 KiB
JSON
1 line
9.1 KiB
JSON
{"pageProps":{"metadata":{"date":"\"2020-04-21 19:44:15 +08:00\"","date_modified":"\"2021-05-04 20:52:15 +08:00\"","language":"en","source":""},"title":"Org mode timestamps","hast":{"type":"root","children":[{"type":"element","tagName":"nav","properties":{"className":"toc"},"children":[{"type":"element","tagName":"ol","properties":{"className":"toc-level toc-level-1"},"children":[{"type":"element","tagName":"li","data":{"hookArgs":[{"type":"element","tagName":"h1","properties":{"id":"timestamps-and-durations"},"children":[{"type":"text","value":"Timestamps and durations"}]}]},"properties":{"className":"toc-item toc-item-h1"},"children":[{"type":"element","tagName":"a","properties":{"className":"toc-link toc-link-h1","href":"/text.org-mode.timestamps#timestamps-and-durations"},"children":[{"type":"text","value":"Timestamps and durations"}]}]},{"type":"element","tagName":"li","data":{"hookArgs":[{"type":"element","tagName":"h1","properties":{"id":"deadlines-and-schedules"},"children":[{"type":"text","value":"Deadlines and schedules"}]}]},"properties":{"className":"toc-item toc-item-h1"},"children":[{"type":"element","tagName":"a","properties":{"className":"toc-link toc-link-h1","href":"/text.org-mode.timestamps#deadlines-and-schedules"},"children":[{"type":"text","value":"Deadlines and schedules"}]}]},{"type":"element","tagName":"li","data":{"hookArgs":[{"type":"element","tagName":"h1","properties":{"id":"repeated-tasks"},"children":[{"type":"text","value":"Repeated tasks"}]}]},"properties":{"className":"toc-item toc-item-h1"},"children":[{"type":"element","tagName":"a","properties":{"className":"toc-link toc-link-h1","href":"/text.org-mode.timestamps#repeated-tasks"},"children":[{"type":"text","value":"Repeated tasks"}]}]}]}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"As previously stated, "},{"type":"element","tagName":"a","properties":{"href":"/2020-04-20-16-51-40"},"children":[{"type":"text","value":"Org mode"}]},{"type":"text","value":" is first created as an outliner enabling you to manage tasks.\nHere's some of the features you might be interested when using it as such.\n"}]},{"type":"element","tagName":"h1","properties":{"id":"timestamps-and-durations"},"children":[{"type":"text","value":"Timestamps and durations"}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Being a personal information tool, Org mode heavily features timestamps.\n"}]},{"type":"element","tagName":"pre","properties":{"className":["src-block"]},"children":[{"type":"element","tagName":"code","properties":{"className":["language-org"]},"children":[{"type":"text","value":"<2021-04-21 Wed>\n"}]}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"You can easily set a timestamp with "},{"type":"element","tagName":"code","properties":{"className":["inline-code"]},"children":[{"type":"text","value":"org-time-stamp"}]},{"type":"text","value":" that comes with an interactive calendar and a prompt to indicate the date and time.\nThe "},{"type":"element","tagName":"a","properties":{"href":"https://orgmode.org/manual/The-date_002ftime-prompt.html"},"children":[{"type":"text","value":"prompt"}]},{"type":"text","value":" is more useful since you can quickly enter relative values such as:\n"}]},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"code","properties":{"className":["inline-verbatim"]},"children":[{"type":"text","value":"+1d"}]},{"type":"text","value":" for tomorrow.\n"}]}]},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"code","properties":{"className":["inline-verbatim"]},"children":[{"type":"text","value":"2020-05-01 +23d"}]},{"type":"text","value":" means 23 days after the 2020-05-01.\n"}]}]},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"code","properties":{"className":["inline-verbatim"]},"children":[{"type":"text","value":"+4d 10:00+2"}]},{"type":"text","value":" for 4 days later starting from 10:00 to 12:00.\n"}]}]},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"code","properties":{"className":["inline-verbatim"]},"children":[{"type":"text","value":"+1m 1pm+3"}]},{"type":"text","value":" for a month later starting from 1:00 PM to 4:00 PM.\n"}]}]}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Durations are made by putting a pair of dashes between two timestamps.\n"}]},{"type":"element","tagName":"pre","properties":{"className":["src-block"]},"children":[{"type":"element","tagName":"code","properties":{"className":["language-org"]},"children":[{"type":"text","value":"<2021-04-22 Thu>--<2021-04-25 Sun>\n"}]}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"You can quickly create a duration by running "},{"type":"element","tagName":"code","properties":{"className":["inline-code"]},"children":[{"type":"text","value":"org-time-stamp"}]},{"type":"text","value":" two times consecutively.\n"}]},{"type":"element","tagName":"h1","properties":{"id":"deadlines-and-schedules"},"children":[{"type":"text","value":"Deadlines and schedules"}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"In Org mode agenda view, it can show deadlines and schedules by prepending the timestamps with "},{"type":"element","tagName":"code","properties":{"className":["inline-verbatim"]},"children":[{"type":"text","value":"DEADLINE"}]},{"type":"text","value":" and "},{"type":"element","tagName":"code","properties":{"className":["inline-verbatim"]},"children":[{"type":"text","value":"SCHEDULED"}]},{"type":"text","value":", respectively.\n"}]},{"type":"element","tagName":"pre","properties":{"className":["src-block"]},"children":[{"type":"element","tagName":"code","properties":{"className":["language-org"]},"children":[{"type":"text","value":"DEADLINE: <2021-04-26 Mon 22:00>\nSCHEDULED: <2021-04-25 Sun 20:00>\n"}]}]},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Deadline entries make up the tasks that has to be done by the specified datetime.\n When present in the agenda, it will warn an issue when the task is not done after the deadline had passed.\n"}]}]},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Scheduled entries indicate the tasks that you will do starting from the timestamp.\n When present in the agenda, it will simply remind you to do the task until done.\n"}]}]}]},{"type":"element","tagName":"h1","properties":{"id":"repeated-tasks"},"children":[{"type":"text","value":"Repeated tasks"}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"One can set "},{"type":"element","tagName":"a","properties":{"href":"https://orgmode.org/manual/Repeated-tasks.html"},"children":[{"type":"text","value":"repeated tasks"}]},{"type":"text","value":" in the following format.\n"}]},{"type":"element","tagName":"pre","properties":{"className":["src-block"]},"children":[{"type":"element","tagName":"code","properties":{"className":["language-org"]},"children":[{"type":"text","value":"SCHEDULED: <2020-06-22 Mon +2d>\n"}]}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Any missed session will cause the agenda to keep overdued sessions and accumulate to repeat the tasks 'X' number of times with the number of overdued sessions.\n"}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Some tasks does not work this way, however.\nYou don't need to replace the batteries 5 times or brush your teeth 10 times to make up for it.\nFor this, you can do the following.\n"}]},{"type":"element","tagName":"pre","properties":{"className":["src-block"]},"children":[{"type":"element","tagName":"code","properties":{"className":["language-org"]},"children":[{"type":"text","value":"SCHEDULED: <2020-06-22 Mon ++2d>\n"}]}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"One cool thing about it if you mark a task as done, it will simply create an entry of the task completed and update the base date.\n"}]},{"type":"element","tagName":"pre","properties":{"className":["src-block"]},"children":[{"type":"element","tagName":"code","properties":{"className":["language-org"]},"children":[{"type":"text","value":"* TODO Watch the lectures from Brian Harvey's SICP series (https://archive.org/details/ucberkeley-webcast-PL3E89002AA9B9879E?sort=titleSorter)\nSCHEDULED: <2020-06-24 Wed .+2d>\n:PROPERTIES:\n:LAST_REPEAT: [2020-06-22 Mon 22:01]\n:END:\n- State \"DONE\" from \"TODO\" [2020-06-22 Mon 22:01]\n"}]}]}]},"backlinks":[{"path":"/2020-04-20-16-51-40","title":"Org mode"}]},"__N_SSG":true} |