timespan Questions

2

Solved

I tried the new Record type TTimeSpan in Delphi 2010. But I encountered a very strange problem. assert(TTimeSpan.FromMilliseconds(5000).Milliseconds = 5000); This assertion does not pass. The valu...
Eddieeddina asked 22/5, 2010 at 8:52

1

Solved

I want a method that will sum data that is string in the format hh:mm (time hours and minutes) 0:15 + 0:15 = 0:30
Flong asked 20/5, 2010 at 6:49

3

Solved

I take the difference between two DateTime fields, and store it in a TimeSpan variable, Now I have to round-off the TimeSpan by the following rules: if the minutes in TimeSpan is less than 30 then...
Bridoon asked 26/4, 2010 at 14:26

3

Solved

I'm trying to loop through EACH DAYof the WEEK between 2 time periods DateTime start = new DateTime(2010, 1, 1); DateTime end = new DateTime(2011, 12, 12); I have managed to get the number of ...
Rolland asked 21/4, 2010 at 14:33

5

Solved

I am working on an algorithm in C# to calculate a past DateTime based on an input string with the following characteristics: The string contains an integer followed by either 'D', 'M' or 'Y', such...
Beuthen asked 1/3, 2010 at 20:58

1

Solved

I want to format the Timespan to have format like this 49 hr 34 mn 20 sec I used the String format below: String.Format("{0:00}:{1:00}:{2:00}", theTimeSpan.TotalHours, theTimeSpan.Minutes, theTim...
Triangulate asked 13/1, 2010 at 17:4

2

Solved

I woulld like to know if a specified time of the day is passed. I don't really like the way I am doing: private static readonly TimeSpan _whenTimeIsOver = new TimeSpan(16,25,00); internal static ...
Banquette asked 11/9, 2009 at 14:13

5

Solved

I have some strings of xxh:yym format where xx is hours and yy is minutes like "05h:30m". What is an elegant way to convert a string of this type to TimeSpan?
Meshach asked 25/8, 2008 at 20:16

5

Solved

I have to calculate the relative time which is TimeSpan relativeTime = currentTime.Subtract(startTime); Next I would like to convert relativeTime to double value which should be consisted of sec...
Dynamoelectric asked 20/5, 2009 at 12:57

3

Solved

I have a report and a datasource where one of the columns are of type TimeSpan. The TimeSpan value appears to display correctly in the report when I use Fields!TheTime.Value, no problem there. 07...
Arthromere asked 27/2, 2009 at 15:14

1

Solved

Does Java have a data type that represents a period of time eg 34 seconds, 5 minutes etc. I've seen a few implementations of a TimeSpan that cover a Time period like from the 10th of December to t...
Joejoeann asked 13/1, 2009 at 17:21

3

Solved

What is the C# optimised version of the following, without using .Net's Timespan or DateTime. How would I NUnit test it? TimeSpan ts = Date1 - Date2; int numberOfDays = ts.Days;
Olette asked 3/12, 2008 at 14:40

8

Solved

I'm having problems deciding on what is the best way is to handle and store time measurements. I have an app that has a textbox that allows the users to input time in either hh:mm:ss or mm:ss form...
Hasp asked 17/9, 2008 at 16:56

© 2022 - 2024 — McMap. All rights reserved.