Calendar (commandline)

Discussion in 'Misc' started by Michael C., Nov 2, 2011.

  1. Michael C.

    Michael C. Guest

    I'm running multiple systems which includes both Ubuntu and OS X
    10.6.8 and decided I wanted calendar to show up when I start a
    terminal and noticed Thanksgiving was appearing correctly under
    Ubuntu, but not showing up under OS X.

    $ calendar -A 30 -B 30 -f /usr/share/calendar/calendar.usholiday

    Oct 31 All Hallows Eve (Halloween)
    Nov 1* Thanksgiving Day (4th Thursday in November)
    Nov 5* Election Day in USA (1st Tuesday after 1st Monday for even
    years)
    Nov 6* Daylight Savings Time ends in USA; clocks move back (1st
    Sunday of November)
    Nov 11 Veterans' Day

    on my Ubuntu machine:

    $ ssh mike@cerberus \
    calendar -A30 -B30 -f /usr/share/calendar/calendar.usholiday

    Oct 10* Columbus Day in USA (2nd Monday of October)
    Oct 31 All Hallows Eve (Halloween)
    Nov 01* Election Day in USA (1st Tuesday after 1st Monday for
    even years)
    Nov 06* Daylight Savings Time ends in USA; clocks move back
    (1st Sunday of November)
    Nov 11 Veterans' Day
    Nov 24* Thanksgiving Day (4th Thursday in November)

    Is there a problem with matching 11/ThuFourth in OS X?

    The only thing I can think of is it doesn't recognize the date
    format in calendar.usholiday. Is this an OS X bug or is that
    formatting being removed?

    Any suggestions for correcting this greatly appreciated.

    Thanks,

    Michael C.
    --
    mjchappell at verizon.net http://mcsuper5.freeshell.org/

    Programming is like sex... Make one mistake and support it the rest of
    your life.
     
    Michael C., Nov 2, 2011
    #1
    1. Advertisements

  2. In article <>,
    "Michael C." <-september.org> wrote:

    > I'm running multiple systems which includes both Ubuntu and OS X
    > 10.6.8 and decided I wanted calendar to show up when I start a
    > terminal and noticed Thanksgiving was appearing correctly under
    > Ubuntu, but not showing up under OS X.


    These calendar applications/files have serious problems...

    > $ calendar -A 30 -B 30 -f /usr/share/calendar/calendar.usholiday
    >

    [...]
    > Nov 1* Thanksgiving Day (4th Thursday in November)


    Indeed, the problem you noticed.

    > Nov 5* Election Day in USA (1st Tuesday after 1st Monday for even
    > years)


    The next year where that day will be Election Day is 2024. The last one
    was 2002.

    [...]

    > on my Ubuntu machine:
    >
    > $ ssh mike@cerberus \
    > calendar -A30 -B30 -f /usr/share/calendar/calendar.usholiday
    >

    [...]
    > Nov 01* Election Day in USA (1st Tuesday after 1st Monday for
    > even years)


    That will *never* happen, by design.

    _x.
     
    Xavier Llobet, Nov 2, 2011
    #2
    1. Advertisements

  3. In article <>,
    "Michael C." <-september.org> wrote:

    > I'm running multiple systems which includes both Ubuntu and OS X
    > 10.6.8 and decided I wanted calendar to show up when I start a
    > terminal and noticed Thanksgiving was appearing correctly under
    > Ubuntu, but not showing up under OS X.


    These calendar applications/files have serious problems...

    > $ calendar -A 30 -B 30 -f /usr/share/calendar/calendar.usholiday
    >

    [...]
    > Nov 1* Thanksgiving Day (4th Thursday in November)


    Indeed, the problem you noticed.

    > Nov 5* Election Day in USA (1st Tuesday after 1st Monday for even
    > years)


    The next year when that day will be Election Day is 2024. The last one
    was 2002.

    [...]

    > on my Ubuntu machine:
    >
    > $ ssh mike@cerberus \
    > calendar -A30 -B30 -f /usr/share/calendar/calendar.usholiday
    >

    [...]
    > Nov 01* Election Day in USA (1st Tuesday after 1st Monday for
    > even years)


    That will *never* happen, by design.

    _x.
     
    Xavier Llobet, Nov 2, 2011
    #3
    1. Advertisements

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Similar Threads
  1. Newsbot
    Replies:
    0
    Views:
    613
    Newsbot
    Sep 22, 2007
  2. Newsbot

    Guides: Calendar Store Programming Guide

    Newsbot, Oct 30, 2007, in forum: Apple Developer News
    Replies:
    0
    Views:
    577
    Newsbot
    Oct 30, 2007
  3. leo
    Replies:
    4
    Views:
    202
    Matti Haveri
    Jun 17, 2004
  4. randolf balasus

    Put mac to sleep from commandline

    randolf balasus, Aug 18, 2007, in forum: Misc
    Replies:
    2
    Views:
    261
    Calum
    Aug 19, 2007
  5. John Smith

    Cross compiling from commandline

    John Smith, Nov 12, 2004, in forum: Programmer Help
    Replies:
    0
    Views:
    185
    John Smith
    Nov 12, 2004
  6. Pete
    Replies:
    1
    Views:
    173
    noman
    Jun 20, 2004
  7. D.M. Procida
    Replies:
    7
    Views:
    905
    gutts
    Feb 10, 2005
  8. D.M. Procida

    Starting applications from the commandline

    D.M. Procida, Feb 27, 2005, in forum: UK Macs
    Replies:
    10
    Views:
    235
    Andrew Templeman
    Feb 28, 2005
Loading...