Re: [O] calculate weekday of birthday

2017-07-31 Thread Nick Dokos
Salome Soedergran writes: > Hi everybody > > How can I make orgmode to give me the weekday of a specific date? > I have a list (org-table) with students' names and dates of birth that looks > like this: > |--+---+--+---+-+-+-| > | Name | Firstname | year | mon

Re: [O] calculate weekday of birthday

2017-07-31 Thread Adam Porter
Hi Salome, The decode-time function returns a list that includes the day-of-week as a number from 0-6. You'll have to give it an encoded time, which you can use encode-time for. A wild idea would be to use the shell "date" command, which is overkill for this, but I just happen to have this code

[O] calculate weekday of birthday

2017-07-31 Thread Salome Soedergran
Hi everybody How can I make orgmode to give me the weekday of a specific date? I have a list (org-table) with students' names and dates of birth that looks like this: |--+---+--+---+-+-+-| | Name | Firstname | year | month | day | age | weekday | |--+--