1. Join our server at MC.SHADOWKINGDOM.ORG!
    Dismiss Notice

Finding timezone differences between you and staff

Discussion in 'Tutorials' started by pastelnarwhal, Sep 17, 2018.

  1. pastelnarwhal

    pastelnarwhal Moderator
    Moderator

    Joined:
    Dec 16, 2017
    Messages:
    98
    Likes Received:
    79
    This isn't so much of a tutorial, more like I made something but it requires some setup work unless I want to download a bunch of things or pay money for a subscription. Of course, I could also just give you a list of the timezones, but I'm both too lazy and too much of a tryhard for that.

    Enclosed, there is a python 3 file. If you don't have python 3 and don't want to get it, then you can't use it, and you can just ignore the thread, because of the above reasons. However, if you do have python, then let me tell you how to use my file. Also, I know most about macs, so this may not be helpful even if you do have python 3 and just want to use the file.

    You can probably just open the file and then hit f5 or fn+f5 on macs, but there is another way. If you copy the file path, which, if it is on the desktop, is on macs Users/[User]/Desktop/time.py (if you didn't rename it) terminal you can type "python3 [file path]" and hit enter. Also, if you already have python 3, chances are that you already know this.

    If you can actually get this to work, then I applaud both you and myself, as this is complicated. I wish I could just give the program to you and you could run it, but that's not how this works, unfortunately.

    Also, in case you didn't already figure it out, you need to download the file first.

    The first few lines of code when you open the file, probably at least one wrong thing can be seen here already, as I am not that experienced. Screen Shot 2018-09-17 at 10.22.09 PM.png
    Edit: I think I fixed the accuracy, it still isn't the most efficiently made program ever, but I tried. Also, I didn't name the timezones. Just putting that out there.
     

    Attached Files:

    #1 pastelnarwhal, Sep 17, 2018
    Last edited: Sep 18, 2018
  2. pastelnarwhal

    pastelnarwhal Moderator
    Moderator

    Joined:
    Dec 16, 2017
    Messages:
    98
    Likes Received:
    79
    Really hope this works
     
  3. Link_Targaryen

    Link_Targaryen Administrator & System Administrator
    Administrator

    Joined:
    Jan 20, 2017
    Messages:
    333
    Likes Received:
    171
    I'm actually in CST, not EST. And are you doing the (-#) based on UTC? Cause CST is UTC-6, and all the others should be adjusted similarly if so.
     
    • Useful Useful x 1
  4. Fira

    Fira Manager & System Administrator
    Manager

    Joined:
    Jan 21, 2017
    Messages:
    112
    Likes Received:
    65
    The funniest part is that jst and sh1m are in the WET timezone :^) you could say they are in the splash zone ?
     
    • Funny Funny x 1
    • Optimistic Optimistic x 1
  5. pastelnarwhal

    pastelnarwhal Moderator
    Moderator

    Joined:
    Dec 16, 2017
    Messages:
    98
    Likes Received:
    79
    ok, i don't really know time zones that well, i'll fix the issues
     
  6. FNPlayz

    FNPlayz Well-Known Member

    Joined:
    Jul 23, 2018
    Messages:
    66
    Likes Received:
    96
    ah good ol' python
     
    • Like Like x 1
  7. F4ntasbolic

    F4ntasbolic Well-Known Member

    Joined:
    Mar 15, 2017
    Messages:
    20
    Likes Received:
    7
    i just use timeanddate.com
     
  8. pastelnarwhal

    pastelnarwhal Moderator
    Moderator

    Joined:
    Dec 16, 2017
    Messages:
    98
    Likes Received:
    79
    Well, I just wanted some practice with the language
     
    • Informative Informative x 1
  9. l3raiNfreeZe

    l3raiNfreeZe Member

    Joined:
    May 8, 2018
    Messages:
    15
    Likes Received:
    0
    Some nice lines of code you have there
     
    • Friendly Friendly x 1
  10. pastelnarwhal

    pastelnarwhal Moderator
    Moderator

    Joined:
    Dec 16, 2017
    Messages:
    98
    Likes Received:
    79
    Thanks! :)
     

Share This Page