+ Reply to Thread
Results 1 to 8 of 8

Thread: Time of stoli server

  1. #1
    kulkarniniraj1413 is offline x10Hosting Member kulkarniniraj1413 is an unknown quantity at this point
    Join Date
    Jun 2010
    Posts
    5

    Time of stoli server

    Hi
    I am trying to run a python script every day at specific time using cron job. But I dont know what is current time of server. My account is on stoli server. I tried a python script to get current time, but when I set a cron job 4-5 min after that time, it does not execute. I am able to execute same job using every 2 min setting (*/2 * * * * *). So can anybody tell me what time is cron job synchronised with?

  2. #2
    misson is offline x10 Spammer misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,506

    Re: Time of stoli server

    In Python, you can use time.strftime to get the server local time formatted as a string. PHP also has a strftime (no big surprise, since both are based on the C library function of the same name).
    Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.
    Misson, not Mission.

  3. #3
    kulkarniniraj1413 is offline x10Hosting Member kulkarniniraj1413 is an unknown quantity at this point
    Join Date
    Jun 2010
    Posts
    5

    Re: Time of stoli server

    Actually, I've got the time from python script using datetime.now function (and it is same as time.strftime). But the thing is, cron jobs are not run as per that time. I've accidentally figured out that cron time is 2 hrs less than the time which python script shows.
    I hope admins can put up a clock on the cron-job page. Its hard to believe that such full-fledged site doesn't have any clock, at-least on the page where it is absolutely necessery.

    Regard
    Niraj

  4. #4
    leafypiggy's Avatar
    leafypiggy is offline Community Advocate leafypiggy is on a distinguished road
    Join Date
    Aug 2007
    Location
    Massachusetts
    Posts
    2,228

    Re: Time of stoli server

    The server's local time will be GMT-5, I believe. It's CDT.
    Neil Hanlon | x10Hosting Support Representative
    Neil[at]x10hosting.com
    █ I'm always happy to help. Just ask a question in Free Hosting
    Terms of Service IRC

  5. #5
    kulkarniniraj1413 is offline x10Hosting Member kulkarniniraj1413 is an unknown quantity at this point
    Join Date
    Jun 2010
    Posts
    5

    Re: Time of stoli server

    Yeah, as per my calculations, I think thats right. But there is need of a clock on cron page, since users might be from different time zones.
    Anyway thanx

    Niraj

  6. #6
    leafypiggy's Avatar
    leafypiggy is offline Community Advocate leafypiggy is on a distinguished road
    Join Date
    Aug 2007
    Location
    Massachusetts
    Posts
    2,228
    Quote Originally Posted by kulkarniniraj1413 View Post
    Yeah, as per my calculations, I think thats right. But there is need of a clock on cron page, since users might be from different time zones.
    Anyway thanx

    Niraj
    As far as I know, that's impossible to do. cPanel is encrypted, so we can't edit it.
    Neil Hanlon | x10Hosting Support Representative
    Neil[at]x10hosting.com
    █ I'm always happy to help. Just ask a question in Free Hosting
    Terms of Service IRC

  7. #7
    kulkarniniraj1413 is offline x10Hosting Member kulkarniniraj1413 is an unknown quantity at this point
    Join Date
    Jun 2010
    Posts
    5

    Re: Time of stoli server

    Cant they(admins) add a a div on that page? Otherwise even a seperate page( like the one after log-in) would be enough. At-least somewhere one should see current time.

  8. #8
    leafypiggy's Avatar
    leafypiggy is offline Community Advocate leafypiggy is on a distinguished road
    Join Date
    Aug 2007
    Location
    Massachusetts
    Posts
    2,228
    No, they cant. It's encrypted software.
    Neil Hanlon | x10Hosting Support Representative
    Neil[at]x10hosting.com
    █ I'm always happy to help. Just ask a question in Free Hosting
    Terms of Service IRC

+ Reply to Thread

Similar Threads

  1. Stoli Server time?
    By Zlaxer in forum Free Hosting
    Replies: 1
    Last Post: 10-04-2008, 12:33 AM
  2. Stoli server offline for the 50th time
    By Sims3fan in forum Free Hosting
    Replies: 1
    Last Post: 08-09-2008, 09:54 PM
  3. Stoli: Entire Server, and not in the Server News
    By zapperpost in forum Free Hosting
    Replies: 8
    Last Post: 07-10-2008, 05:07 PM
  4. Server Time-Zone To Local Time-Zone
    By rockee in forum Tutorials
    Replies: 4
    Last Post: 06-02-2008, 09:58 AM
  5. adEnhanced Server (stoli) server down (HTTP)
    By MSchumacher1 in forum Free Hosting
    Replies: 2
    Last Post: 11-18-2007, 01:10 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers