Set the Timer time?

I want to setup a timer to run on a schedule once every 24 hours starting at 12:00am.
When I set this up I assume the Timer is using the machines time, but I want to make it run against a NTP time I get and not use the users time.
Is there a way to tell the timer what time to use?

In this thread [http://forums.sun.com/thread.jspa?threadID=5370539&tstart=50] you will find a discussion about getting the time from a time server. It contains a link to a package that will be helpfull.
A Client class in that package computes the offset from the local time and the server time. You may use this offset to compute a local time that is synchronized with the server time.
If you fear that during the day your local machine's clock is somewhat slow (or fast) compared to your time server, you might trigger an early warning action, say 5 minutes before the requested time, and resynchronize the wake up call.
Piet

Similar Messages

  • Does anyone know how to set the starting time for an audio book?

    I am trying to restart a burn in iTunes that failed for an audiobook. I need to set the start time so it will not have to reburn the disks that were already completed. I cannot find out how to do that in version 11 if the book consists of more than one file. Anyone have an idea how to do this? Apple wants me to pay $20 for something that should be in the help menu.

    UCCX 5.0(2)SR02 is the version
    I attached a screenshot of what I am trying to use but I am not sure what to put as the value?  I tried using "now" and "null" but no success.

  • How to set the interval time in the   JFormattedTextField? Pls Contribute..

    Hi Frienz,
    Hi have a following code in which i want set the interval time for the TextField by 15 min
    So how it is possible please tell me out.
    DateFormatter frmtr = new DateFormatter();
                   SimpleDateFormat sdf = new SimpleDateFormat("HH:mm");
                   frmtr.setFormat(sdf);
                   frmtr.setAllowsInvalid(false);
                   DefaultFormatterFactory factory = new DefaultFormatterFactory(frmtr, frmtr, frmtr);
                   fmtToTime.setFormatterFactory(factory);

    AFAIK there is no easy (pure java) way: either you exec something (depending on your paltform) or use native code. Appropriate privileges will be necessary.

  • How can i set the date time year to my i pod

    how can i set the date time year to my i pod touch

    Hello Theodora,
    You can do this via your iPod's Settings application.
    B-rock

  • 18 Clicks to set the sleep timer

    It takes me as many as 18 clicks of "Menu" on the scroll wheel, to go from a song window to set a sleep timer and back again. 6 from the song back to the Main Menu, 6 to set the sleep timer and back to the Main Menu (plus rotating the scroll wheel to set the time), and 6 to get back to the song window (I know could just let it snap back but that is not useful if I want to navigate more.)
    Is there an easier way to regularly set a "stop play timer"?
    I had hoped with newer Nano operating systems, Apple would have made the sleep timer (a "Stop Play Timer") setup like the Alarm Clock. If that were the case, then one could set the default state to always stop playing after a preset number of minutes. (A variable time setting would be preferable.)
    If preset to 20 minutes, then every time I play the nano (hit the play section of the scroll wheel), the Nano would play for 20 minutes and stop. Alternately I could leave this in the "Off" state and the Nano would play straight through (as is the current default).
    This would save battery life when the Nano is accidently activated. Most people I know do not routinely set the hold button and have accidently activated and undesirably depleted the battery.
    I could see many other times this would conserve battery life.
    This would be especially useful when listening to spoken word files. I currently make multiple folders with less files in them as a workaround.
    Most important, I would not need to navigate the menu sub-windows to set this.
    Thus if setting this while somewhat asleep, one click and done.
    Currently I often end up not setting the timer which can be terrifically annoying, and battery wasteful. And take much time to navigate back to where I suppose I left off listening last prior to dozing or being distracted.

    My Nano must be different than yours. On my unit, when I select that sleep function from the main menu, it puts the unit to sleep. It does not bring up the sleep timer. Are we talking about the same thing? Does yours bring up the sleep timer?
    I find that sleep item to be a waste in that I hold the play button a few seconds when I want to put the iPod down. To bad that sleep function with the capacity to be set to "On" isn't a default play mode of a sleep timer.
    For now, I have put the Clock in the main menu which saves a click and a scroll.
    But still no default play mode of sleep timer.

  • When I try to set the automatic time zone on my iPad in Settings all I get is the "waiting" wheel constantly turning.    The only way to set the time is in the manual mode.  Does anyone else have this problem?  Thanks!

    When I try to set the automatic time zone on my iPad wi-fi mini in Settings all I get is the "waiting" wheel constantly turning. 
    The only way to set the time is in the manual mode.
    How to solve this problem?
    Thanks!

    You must be connected to a good wifi network for it to reach an outside time server.

  • How do I set the default time for calendar alerts?

    How do I set the default time for calendar alerts? I always want to have an alert 15 minutes before my appointments. I don't want to have to manually set it each time I make an appointment (I just moved to iphone from a windows mobile where this was basic stuff so I apologise if this is a noob question).

    I have the same issue. I've searched these forums and found lots of people who have asked this same question, but nobody who has received an answer.
    About a year ago, I migrated from a Windows PC and a Blackberry (both of which had very simple default alert options) to a MacBook Pro and an iPhone and have yet to find a solution on this forum or from any of my Apple-savvy friends. Very discouraging.

  • How to set the expiry time of an image

    how to set the expiry time of an image from within the servlet or jsp

    I am sending an image with the page, so the set the page expiry in the browser cache we can use META tags of html or response.setDateHeader to set the Expires attribute, this setting the expiry time of the page but is not setting the expiry time of the image which is going with the page

  • Set the custom timer job that copy the data in the same list

    Hi
    How to set the custom timer job that copy the data in the same list
    Thanks,

    hello
    please it is wrong to copy all of the list3 item in list1 as the example as below is a copy of one item.
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using Microsoft.SharePoint;
    //This namespace is used for the SPJobDefinition class
    using Microsoft.SharePoint.Administration;
    namespace GENERAL_CustomTimerJob
    //To create a custom timer job, first add a class to your SharePoint project and
    //inherit from SPJobDefinition. Implement the constructors and override the Execute
    //method as shown below. To install your timer job, and set the schedule, you must
    //add a Feature and a Feature receiver.
    class GENERAL_CustomTimerJob :
    SPJobDefinition
    #region Constructors
    //You must implement all three constructors
    public GENERAL_CustomTimerJob()
    base()
    public GENERAL_CustomTimerJob(string jobName,
    SPService service,
    SPServer server, SPJobLockType targetType)
    base(jobName, service, server, targetType)
    public GENERAL_CustomTimerJob(string jobName,
    SPWebApplication webApplication)
    base(jobName, webApplication,
    null, SPJobLockType.ContentDatabase)
    //Set the title of the job, which will be shown in the Central Admin UI
    this.Title = "Simple Example Timer Job";
    #endregion
    //Override the Execute method to run code.
    public override
    void Execute(Guid targetInstanceId)
    //Get the Web Application in which this Timer Job runs
    SPWebApplication webApp =
    this.Parent as
    SPWebApplication;
    //Get the site collection
    SPSiteCollection timerSiteCollection = webApp.ContentDatabases[targetInstanceId].Sites;
    //Get the Announcements list in the RootWeb of each SPSite
    SPList timerJobList =
    null;
    foreach (SPSite site
    in timerSiteCollection)
                    timerJobList = site.RootWeb.Lists.TryGetList("List3");
    if (timerJobList != null)
    string sourceUrl = "http://aydi-pc";
    string destinationUrl =
    "http://aydi-pc/sites/Site1/";
    string sourceList = "List3";
    string destinationList =
    "List1";
    using (SPSite sourceSite =
    new SPSite(sourceUrl))
    using (SPWeb sourceWeb = sourceSite.OpenWeb())
    using (SPSite destSite =
    new SPSite(destinationUrl))
                                    using
    (SPWeb destWeb = destSite.OpenWeb())
    SPList ObjSourcelist = sourceWeb.Lists.TryGetList(sourceList);
    SPList ObjDestinationlist = destWeb.Lists.TryGetList(destinationList);
    SPListItem newItem = ObjDestinationlist.Items.Add();
    SPListItemCollection items = ObjSourcelist.Items;
                                        if
    (items.Count > 0)
    foreach (SPListItem item
    in items)
    newItem["Title"] = item["Title"];
    newItem["Nom"] = item["Nom"];
    newItem["Prenom"] = item["Prenom"];
    newItem.Update();

  • Row 1 Error - Please set the Full Time Equivalent Hours Per Day implementat

    Hi all
    While defining the Enable Workplan Structure in oracle projects i am getting the below error
    Row 1 Error - Please set the Full Time Equivalent Hours Per Day implementation option before enabling the Workplan Structure.
    Plesase can you share and doc or guide where can i set this implementation option
    Thanks in advance

    Hi
    Navigate to Projects> Setup > System > Implementation Options
    There is a tab named - Staffing
    On that form you should enter the Full Time Equivalent Hours - Per Day and Per Week.
    Dina

  • How do I set the system time?

    Hello
    The system time can be read using System.currentTimeMillis(), but, how can I set it?
    Thanks

    several approaches:
    you could use the OS function to set and call it via Runtime.exec().
    For WIndows e.g.: "time 08:15:00" to set the system time.
    another solution: http://www.rgagnon.com/javadetails/java-0285.html

  • How do I set the date/time on my Airport Express?

    I am using an Apple Airport Express to connect to a wireless router in another part of the house. However, I am unable to set the date/time correctly and so the logs all start from Dec 13, 0hrs.
    I have tried using an internet time server, but to no avail.
    Any ideas?

    Open AirPort Utility and click Manual Setup
    Click the Base Station tab just under the row of icons
    Settings for Time Zone and the option to Set Time Automatically are there
    Click Update to save your new settings and restart the AirPort Express

  • Setting the server time one hour back. Possible issues?

    I need to set the server time one hour back, since the date does not correspond to a standard time switch, I believe I may have problems with flashback querys?, maybe some audit problems? any other issues I am missing?
    Would I need to shut down the instance?
    Thank you,

    See Re: Changing date on a solaris system.

  • HT1595 What do you do if the Apple TV cannot set the network time automatically?

    What do you do to set the network time so Apple TV can set up the Apple account?

    Hold down the shift key at reboot, see if that gets you in, if it does then start at #7
    "Gray Screen with spinning gear" type issues (can also be white or blue screen)
    Step by Step to fix your Mac

  • HT1175 how do you set the airport time capsule as the primary base station rather than as a network client?

    how do you set the airport time capsule as the primary base station rather than as a network client?

    The Time Capsule needs to connect to a simple modem......not a modem/router or gateway type of device that is often furnished by Internet Service Providers.
    So, the first logical question here would be......
    What is the make and model number of the device that you call your "modem"?

  • The time on my iphone 5C is constantly changing, regardless of me setting the correct time manually or automatically, all iOS is up to date and phone is not damaged, any ideas?

    The time will stay correct for an hour or so, then jump backwards for no reason. I have tried setting the time manually and automatically and still get the same problem, and have tried with wifi on and off and it still does it. All my software is up to date and tried contacting EE who said to ask Apple. Phone is about 11 months old and have had no previous problems.

    Hi jennehbear,
    Thank you for using Apple Support Communities.
    Your time jumping backwards an hour sounds like an issue with the time zone. Take a look at this article to troubleshoot the issue.
    iOS: Troubleshooting issues with date and time - Apple Support
    Regards,
    Jeff D. 

Maybe you are looking for

  • WITH LSMW USING BATCH INPUT/DIRECT INPUT/BAPI/IDOCS

    IN WHAT SCENARIOS CAN WE USE BATCH INPUT/DIRECT INPUT/BAPI/IDOCS WITH LSMW.WHICH IS THE BEST ONE.PLEASE TELL ME THE SCENARIOS OF USAGE.

  • Unsecure System User and HKCU

    I'm creating a Zen Application object to deploy Microsoft Office 2007. It will be run as a VBS script, run as the Unsecure System user so that setup.exe can run. Unfortunately this means I don't have access to the actual user's HKCU, or even the corr

  • Image Scan in ADF

    Dear All can any one help me to make a page to scan images using any scanners & preview after scanning using ADF technology? thanks

  • Rep tells me my Duel Xeons not support GTX Titan

    i own/use a workstation computer for editing hd video and 2d animation - i don't game. when i purchased the machine a few years ago, a rep at the company told me that my duel xeons would only support quadro based (workstation) cards. i'm looking to u

  • Ipod touch 4th display problem - Non-responsive

    Good afternoon. iPod touch 4th Gen is non-responsive to the screen.  Will display "slide to unlock" but is unresponsive to touch.   Screen also has vertical and horizontal lines which appear all the way across the screen.  Interestingly the siri will