Page 1 of 7 123 ... LastLast
Results 1 to 10 of 63

Thread: Mayan Doomsday Countdown

  1. #1
    Gold Member
    trigggl's Avatar
    Join Date
    November 6th, 2010
    Location
    Arkansas
    Posts
    2,077

    Mayan Doomsday Countdown

    On a whim, I decided to try to figure out how to create my own Linux command line Mayan countdown to December 21.

    With the "knowledge" that the supposed doomsday is 13.0.0.0.0 according to the Mayan long count and that the date for that is approximated to Dec.21, I wrote a bash script to countdown the last 2 digits to 0.0.0.0.0. For instance, today is 76 days until Dec.21. By my bash script, that comes out to 3 winal and 16 K'in. Or, in other words,

    0.0.0.3.16

    Tomorrow will be...

    0.0.0.3.15

    We're already close enough to set the date that Tun, K'utun and Bac'tun are all zero. No point in calculating them. To make a short complicated story shorter, here's my script.

    Code:
    #!/bin/bash
    let countdn=15695-$(date +%s)/86400
    let winal=$countdn/20
    let kin=$countdn-$winal*20
    echo "0.0.0."$winal"."$kin
    There are 20 K'in (days) in a Winal, so the day after 0.0.0.3.0 will be 0.0.0.2.19 left.

    I guess I should put an 'if' statement on 'countdn' to make sure it's not a negative number.

    else
    echo "The sky is falling!"
    6r39 7r199



  2. #2
    Platinum Member
    John P. Myers's Avatar
    Join Date
    January 13th, 2011
    Location
    Jackson, TN
    Posts
    4,502

    Re: Mayan Doomsday Countdown

    If it helps with the preciseness of your calculations, the Mayan calendar ends at the moment of the winter solstice, which is Dec. 21 at 11:12 AM UTC


  3. #3
    Platinum Member
    Mumps's Avatar
    Join Date
    October 28th, 2010
    Location
    Milwaukee, WI
    Posts
    3,994

    Re: Mayan Doomsday Countdown

    Quote Originally Posted by trigggl View Post
    I guess I should put an 'if' statement on 'countdn' to make sure it's not a negative number.

    else
    echo "The sky is falling!"
    Or, more appropriately

    else
    echo "The sky *has* fallen!"

  4. #4
    Past Admin
    Mike029's Avatar
    Join Date
    October 24th, 2010
    Location
    Bronx, New York
    Posts
    3,377

    Re: Mayan Doomsday Countdown

    Dammit. We have to catch SG by that date? Let's get too it.... No time to waste.



  5. #5
    Diamond Member
    Duke of Buckingham's Avatar
    Join Date
    May 14th, 2011
    Location
    Lisboa = Portugal
    Posts
    8,433

    Re: Mayan Doomsday Countdown

    If it is to have strange ideas, I still prefer to assume that the Mayan were expecting their gods to return to earth on that day.

    In fact the Dresden codex on the last page seems to have a deluge as a prediction but I could bet anything that it is not it because if I lose I will only have to pay after the end of the world and I will not need the money anymore.

    It doesn't matter anyway, if the word ends we will end with it and after the end of the world, no one will stay to congratulate the predictors of such disgrace.

    I have one thing to declare, Duke phoned home and they are coming to take me home.

    Very Crazy Duke phoning home
    Friends are like diamonds and diamonds are forever



  6. #6
    Gold Member
    trigggl's Avatar
    Join Date
    November 6th, 2010
    Location
    Arkansas
    Posts
    2,077

    Re: Mayan Doomsday Countdown

    0.0.0.3.15
    6r39 7r199



  7. #7
    Diamond Member
    Duke of Buckingham's Avatar
    Join Date
    May 14th, 2011
    Location
    Lisboa = Portugal
    Posts
    8,433

    Re: Mayan Doomsday Countdown

    Now I am getting nervous.
    Friends are like diamonds and diamonds are forever



  8. #8
    Gold Member
    trigggl's Avatar
    Join Date
    November 6th, 2010
    Location
    Arkansas
    Posts
    2,077

    Re: Mayan Doomsday Countdown

    0.0.0.3.14
    6r39 7r199



  9. #9
    Diamond Member
    Duke of Buckingham's Avatar
    Join Date
    May 14th, 2011
    Location
    Lisboa = Portugal
    Posts
    8,433

    Re: Mayan Doomsday Countdown

    Friends are like diamonds and diamonds are forever



  10. #10
    Gold Member
    trigggl's Avatar
    Join Date
    November 6th, 2010
    Location
    Arkansas
    Posts
    2,077

    Re: Mayan Doomsday Countdown

    0.0.0.3.12
    6r39 7r199



Page 1 of 7 123 ... LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •