I want to write an application indicator for Unity to show a single number and a tooltip. I want to update this number when the date changes i.e. on 24:00 and I need to update it if computer wakes up from hibernate or standby.
Is there any way to be notified about above mentioned events in Ubuntu? I look for any API for watching and monitoring date/time changes and signals in the system. I want to avoid scanning system time to catch the changes.