clock

Using client time to calculate timezone

Hi Folks, Instead of asking a client timezone in registration form (to correctly format datetime, all server dates in UTC) I thought about fetching a time from client computer and calculating time offset between client and server. Anyone tried this? How often clients have something insane on their system clocks? Cheers! ...

replacement for clock app

the least thing i like on the nexus one is the useless app it runs when on the desktop dock. I already wasted a good day searching for the 3 topics below and failed to find anything. Is there any replacement for it already available? Is there source code for the original one? Is there documentation on how to replace them? ...

.NET - Are there any flip clock controls?

For a .NET (Winforms) application are there any flip clock controls? Ideally it would look something like the one found on the BlackBerry Bold: UPDATE 1: Following this SO link I have added an element host to my project to host the WPF retroclock that @Shane mentioned. UPDATE 2: A few steps that I followed: Compile RetroClock Ad...

What is the correct way to add a subview to a new window, making it aware of its available window size?

Hi, This is some kind of a basic question: I am adding a new Subview to a window using: - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { viewController = [[myViewController alloc] initWithNibName:@"myNib" bundle:nil]; [window addSubview:viewController.view]; This ...

How to determine if std::chrono::monotonic_clock is available?

C++0x N3092 states that monotonic_clock is optional: 20.10.5.2 Class monotonic_clock [time.clock.monotonic] Objects of class monotonic_clock represent clocks for which values of time_point never decrease as physical time advances. monotonic_clock may be a synonym for system_clock if system_clock::is_monotonic is true. The c...

Dynamic Clock in java

I want to implement a clock within my program to diusplay the date and time while the program is running. I have looked into the getCurrentTime() method and Timers but none of them seem to do what I would like. The problem is I can get the current time when the program loads but it never updates. Any suggestions on something to look in...

ASP.NET Javascript Clock

Hi, I would like to put a clock on my webpage which should show time and a timer for a particular interval. Could you please suggest me some open source javascript to do that?? I tried unsuccessfully searching web for flash one's. Please help. Thanks, Mahesh ...

Is there a way to adjust the time displayed by the iPhone?

I'm just curious...on the status bar on the home screen and the lock screen, is there a way to change the time that is displayed??? I've been trying to find things on this both in SDK 3.2 and 4 but with no luck. Thanks for any responses! I really appreciate them :) ...

Keep time in sync among servers without internet connection

I have 5 servers on a LAN without Internet connection. I need them to keep the clock in sync among them. I could configure them as NTP peers, and set a high stratum for the local clock of one of them. In this way, the other four would sync with that clock. What I actually want, is them to agree on a time using all of the 5 local clocks...

how do i Show a clock like this

I intend to show the clock in this way I've done for the clock .. and I'm not sure how to get the small text "PM" like pic above. also for the MON TUE WED .... Calendar c = new GregorianCalendar(); if(c.get(Calendar.DAY_OF_WEEK) == Calendar.MONDAY){ System.out.println("MON"); } else if (c.get(Calendar.DAY_OF_WEEK) == Calendar...

document.getElementById("clock") is null

dear all.. i have a clock time inside my form..it run as a current time same with PC time.. i'm use this code: <script language="javascript"> var int=self.setInterval("clock()",1000); function clock() { var d=new Date(); ...

How to use clock() in C++

How do I call clock() in C++? For example, I want to test how much time a linear search takes to find a given element in an array. ...

Most efficient way of implementing an alarm on iPhone

I have implemented a simple clock like so: - (void)runTimer { timer = [NSTimer scheduledTimerWithTimeInterval:1.0 target:self selector:@selector(showActivity) userInfo:nil ...

iPhone- Dynamically update NSDate for clock?

I've made a clock, and I'm trying to update it so it displays, well, the time. When I initiate the NSDate it is an instance of the exact current time, for the time it was initiated. So what I have going on here is pinging the updateTime function with an NSTimer to update the clock every 3 seconds. It seems that there should be a way to ...

Windows: reliable way to know if a certain date passed?

For a simple product key library I need to reliably check if a certain date passed. I'd like to do something slightly less trivial than checking the system clock since that can be changed easily by the user. What are standard ways of doing this? One way someone suggested is to check if there are files which were modified after the ch...

C++ and CTime & System clock changing

Hello. I want to write simple application in C++ using ctime library. I'm getting the actual time and do some calculation in the loop. Very important for me is the fact that user can modify OS clock during calculations. Is there any way to get to know inside my app if the user has changed OS clock? Thnx for help in advance. PS. This ap...

Windows 7 left click on clock popup

When left single click on the clock in the taskbar on Windows 7 (maybe Vista too) a popup opens showing calender and clock(s) (thus not the date and time adjust window). How do I open this window myself (preferred in C#)? I was hoping timedate.cpl would call this, but this opens the date and time adjust window. ...

How can I implement Apple's "Snooze" functionality in their Clock app?

Hello. I'm diving into iOS development and am building my own alarm clock app to become familiar with the platform and SDK. One of the API's I'm currently learning is the Local Notifications API, which I assume is the same API Apple uses to implement their alarms in their Clock app. What I don't understand is how they implement thei...

Android - acquiring a hold lock from a broadcast receiver

Hi. I am trying to acquire a wake lock in a broadcast receiver so that my alarm clock application can wake the phone from sleep. It crashes at the following line in the code below: PowerManager.WakeLock wl = pm.newWakeLock(PowerManager.SCREEN_DIM_WAKE_LOCK, "My Tag"); Any ideas what's going on? Is there a better way to do this? Tha...

onupdate() is not calling while using analog clock widget.

I have used analogclock widget in XML while running the program onUpdate is not called. Is there any way to get control for drawing a bitmap/text on the widget.? Can I update the widget in onReceive()? My code goes like this... public class ClockWidget extends AppWidgetProvider { @Override public void onUpdate(Context context, Ap...