time

Timed planning Mysql database cleaning

We need to create a script (ajax or php or javascript) that will clean some tables from our database at fixed time. We can not use server features such like Cron tab or others. Any suggestions??? Thanks ...

Converting time from UTC to Local and vice versa

Hi I am trying to figure out a way to convert a FILETIME structure from UTC to Local and vice versa. I've been using the two functions: FileTimetoLocalFileTime() and LocalFileTimeToFileTime(). The problem seems that they do not work as expected. As an example: First I got a local file time using: WIN32_FIND_DATA fd; FindFirstFile(_T...

Android dev time vs iPhone dev time

Hi IF someone has to develop the same application for Android and iPhone, is it more difficult to develop in one platform than on the other? Does it take more time? Lets think about the average app. Lists, text , buttons, fetch information from the internet. Person has same experience on both platforms. Thanks ...

Difference between time() and current time() PHP

Hi, I'm currently creating a subscription membership for my website. I'm storing the date their subscription started in my database using time() (not extra parameters) If not, how can i find the number of days between the current time() and the time() stored in the database? Thanks! ...

Get "2:35pm" instead of "02:35PM" from Python date/time?

I'm still a bit slow with Python, so I haven't got this figured out beyond what's obviously in the docs, etc. I've worked with Django a bit, where they've added some datetime formatting options via template tags, but in regular python code how can I get the 12-hour hour without a leading zero? Is there a straightforward way to do thi...

Flex Date Time Axis Not showing Correct Values

<fx:Declarations> <!-- Place non-visual elements (e.g., services, value objects) here --> </fx:Declarations> <fx:Script> <![CDATA[ import mx.collections.ArrayCollection; [Bindable] public var stockDataAC:ArrayCollection = new ArrayCollection( [ {date: "2005, 7, 27", close: 41.71}, {date: "2005, 7, 28", ...

How to set time limit on input

in python, is there a way to, while waiting for a user input, count time so that after, say 30 seconds, the raw_input() function is automatically skipped? ...

javascript accordion - tracking time question

Hey all, I was reading up on this javascript tutorial: http://www.switchonthecode.com/tutor...ccordion-menus Basically, it shows you how to create an accordion using pure javascript, not jquery. All made sense to me until the actual part of tracking the animation. He says "Because of all that, the first thing we do in the animation func...

Simple way to embed an MP3 audio file in a (static) HTML file, starting to play at a specifc position?

Hi all, I want to produce a simple, static HTML file, that has one or more embedded MP3 files in it. The idea is to have a simple mean of listening to specific parts of an mp3 file. On a single click on a visual element, the sound should start to play; However, not from the beginning of the file, but from a specified starting point in ...

Java GregorianCalendar What am I doing wrong? Wrong date?

Hello I have a problem with GregorianCalendar. What is wrong in there? How outcome is 2010/6/1 and not 2010/05/31? package test; import java.util.Calendar; import java.util.GregorianCalendar; public class Main { public static void main(String[] args) { Calendar cal = new GregorianCalendar(2010, 5, 31); System.ou...

AS3 Random repeat x seconds function

Hi, I have the following function: function update(e:Event):void { var val:Number = Math.random() * 120; rgb.r.x = rgb.r.y = val; rgb.b.x = rgb.b.y = -val; } And im looping it with: stage.addEventListener(Event.ENTER_FRAME, update); But what I need to do would be something like: Random number between 1 and 20 If the number is > 1...

Minutes to time in SQL Server

I've created a function for converting minutes (smallint) to time (varchar(5)), like 58 -> 00:58. set QUOTED_IDENTIFIER ON GO Create FUNCTION [dbo].[IntToMinutes] ( @m smallint ) RETURNS nvarchar(5) AS BEGIN DECLARE @c nvarchar(5) SET @c = CAST((@m / 60) as varchar(2)) + ':' + CAST((@m % 60) as varchar(2)) RETURN @c E...

App Store Submission

In the real world, how long does it take from submission to acceptance & availabilty for download. My boss wants to figure out a project timeline & I need to give him a time. Just wanted to get peoples input from their experiences. ...

best way to know the time of upload/download of a file from/onto iPhone

Hi I'm trying to get the time interval I need to download/upload something to/from a server with no password/proxy. I found a method used by ericasadun. Which actually prints the time iPhone needed to download a certain file. - (void) getData: (NSNumber *) which { NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init...

Set the current date in PHP

I'm currently working on my company's in-house CMS and wish to add the ability for an admin to view the site on a specific date. This will allow admins to preview the site with archived or scheduled posts. I'd like to avoid finding all mentions of date() or time() and offsetting them. Is there a way of making PHP think it's a specific d...

date / time convert to time since php

Hello in my database date / time are in this format 2010-06-01T18:20:25+0000 I'd like to echo that out to time passed since that date / time e.g. 4 days 3 hours 36 minutes and 4 seconds is this possible? ...

Getting simple date and time in android

How can I easily get date and time as integer values in Android? ...

Equivalent to GetTickCount() on Linux

I'm looking for an equivalent to GetTickCount() on Linux. Presently I am using Python's time.time() which presumably calls through to gettimeofday(). My concern is that the time returned (the unix epoch), may change erratically if the clock is messed with, such as by NTP. A simple process or system wall time, that only increases positiv...

ADA Real_time string

Possible duplicate: How to convert a Ada.Real_TIme.Time to a string? How can I convert a Time type obtained with a Ada.Real_Time.Clock to a String type in Ada ? ...

Infinity Time value in java?

is there any possible to get the infinty time value in milliseconds? that is i set that time delay value must be shows the window when the user close the application? any idea? ...