time

how to collect metrics or time taken by GIT commands to complete

I need a help in collecting some metrics like how much time a GIT command or a script took to run. Am aware that appending time before the command would give the time taken to complete the GIT command, But is there a better way or a tool for monitoring or collecting the metrics so that the tool calculates the time for each GIT comman...

I.Y.H.O, what phase of software development takes the most time(besides maintance)?

In your experience, what phase of software development takes the most time? That is besides maintenance, of course. And which phase takes the second most time? Which methodology do you use? ...

How can I convert a double value to time?

How can I convert a double value to time? For example, if the input is 7.50 then the output would be 7.30. ...

Dealing with timezones in Django

I'm trying to deal with timezone information in Django. I tried doing something like: results = Competitor.objects.raw("SELECT official_start AT TIME ZONE 'UTC', official_finish AT TIME ZONE 'UTC' FROM competitor WHERE race_id=1") Thinking that this way I would know that the timezone was UTC but say I store a time in the database that...

Using custom sql in Django

Is there a way to run a custum SQL statement in Django? I have some timestamp fields in my database that have timezone information. Normally you could just enter the time in a format like: 2010-7-30 15:11:22 EDT and in my case postgresql will figure it out. But in Django it treats timestamps as Datetimes which don't store timezone inform...

NTP Client using the Windows API

I'm maintaining a legacy system (pre .NET). Is there any way to fetch the time from an NTP server using the Windows API? Failing that, I could probably create a COM object with .NET to do it, but I would rather not go to that effort. ...

Display current time in this format: HH:mm:ss

Hi, I'm having some trouble displaying the time in this format: HH:mm:ss. No matter what i try, i never get it in that format. I want the time in the culture of the Netherlands which is "nl-NL". This was one of my (although i forgot to keep the count) 1000th try: CultureInfo ci = new CultureInfo("nl-NL"); string s = DateTime.Now.Tim...

Getting local and greenwich time

In the following code, I try to get the local time and greenwich time and find the difference between them. But the output shows both the time values are equal: diff=0 iTm1=16:34 iTm2=16:34 <-----[gmtime is 13:34 actualy] When I just retreive gmtime, it works correctly. But when I retreive both local and gmtime, gmtime becomes equal t...

Text time to numbers [PHP]

I have multiple rows with time "42 sec" "1 min" "2 h 32 min" Is it possible to convert this to "00:00:42" "00:01:00" "02:32:00" with php? ...

How can I change XTS to data.frame and keep Index in R?

I have an XTS timeseries in R of the following format and am trying to do some processing, subsetting and re-arranging before exporting as a CSV for work in another program. head(master_1) S_1 2010-03-03 00:00:00 2.8520 2010-03-03 00:30:00 2.6945 2010-03-03 01:00:00 2.5685 2010-03-03 01:30:00 2.3800 2010-03-03 02:00:0...

How to display converted time zones in a 'generic week' (Sunday thru Saturday)?

Hi, We are building a scheduling application wherein one user may set his "general availability" for all weeks like the following: Sunday | Monday | ... | Friday | Saturday When we ask a person A in India to indicate his "availability", we ask him to select from a drop down of values something like this: 12:00am 12:30am 01:00am ... ...

Adding Time information in XAML

Hi All, I am tracking my website using Google Analytics and I have events corresponding to button clicks. I want the Time information also as to which button was clicked first and which came next. For this I was thinking of adding a time information in the Value field of my track action for the button. Is there anyway I can get the cur...

Accessing a template variable without it passing through it's widget

I'm try to ascertain an event time from a date template variable in a modx snippet. However that template variable has a date formatter widget in it which, while nicely formatting the date, doesn't output the time of the event. I know that modx stores dates in unixtime in it's database, is there an easy way to directly access the unixti...

Set machine time C#

What is the best way to set the machine time in C#? ...

retrieving date and time from a remote server using C#

Possible Duplicate: How do I get the exact time for a remote server in C# Hello How can I programmatically retrieve current date and date from a server (a domain controller for that matter) using C#? (The same output as net time /domain receives) Thank you. ...

A question of time.. and how to manipulate it in java

Hi, I have a question about working with time in java, more specificly in Android. I am developing a device that needs to check to see if an update with a remote server has been done today. I do this by comparing the time (in milliseconds) at midnight last night/this morning with the current time in milliseconds.. so my code is as fo...

How can i calculate time duration between sunrise and sunset?

Hello friends My question is How can i calculate time duration between sunrise and sunset? Then how can i divide this duration(sunrise to sunset) into 8 equal parts(Hr: Min)? All i need is starting and ending time of every part. And i want to write this code in VB.NET because in VB.NET i can easily design the GUI. Thanks ...

mysql timestamp convertion

What is the correct way to convert from mysql timestamp (YYYY-MM-DD HH:MM:SS) to my own chosen format, something like "August 5, 2010"? iow how can I make the mysql timestamp php date() compatible? ...

Pause Time in Windows

I am trying pause time using C#/.NET. I am able to set the time but I would like to set the time to pause. Does anyone know how to do this? Command Prompt suggestions would also be helpful. I'm using Visual Studio 2010 if that matters. ...

Parameterizing php code with DatePeriod, DateInterval classes

Hi, I dont understand DatePeriod, DateInterval classes very well. This question is linked to another one - http://stackoverflow.com/questions/3386952/how-to-display-converted-time-zones-in-a-generic-week-sunday-thru-saturday wherein I want to parameterize the solution offered by artefacto. Help would be appreciated! This is artefacto'...