Questions tagged [timeofday]

Timeofday has two uses. It is one of the column types of a `DataTable` of the Google chart tools, and a property of DateTime in .NET 4.6 and 4.5 Use this tag for questions related to `timeofday`.

timeofday is used in Google Charts and .NET

Google Chart

Google Chart is a JavaScript Data presentation API. Internally, it stores data in (mutable) DataTables and/or (immutable) DataViews which is then passed into a chart.

They have different column types, including timeofday, which is initialized with an

Array of three numbers and an optional fourth, representing hour (0 indicates midnight), minute, second, and optional millisecond.

.NET

A DateTime object has the TimeOfDay property which returns a TimeSpan with the current time.

Use this tag for questions about timeofday.

63 questions
0
votes
0 answers

Why DateTime.Now.TimeOfDay does not work as manual time setting?

I need to send the time of day to the API but TimeOfDay does not result right response (API returns null). If I set the time manually (commented in code) its working fine. Debug watch shows similar format as manual writting. What is the issue…
PCG
  • 2,049
  • 5
  • 24
  • 42
0
votes
1 answer

Error: Type mismatch. Value [00,00,00] does not match type timeofday

I want to create a google line chart from MySQL data which is in json form. JSON data is in this format: { "result": [ { "Date": "Dec 17,2017", "start_time": "22,08,17", "selected_time": "[00,00,00]" …
0
votes
1 answer

Changes Images folder, based on time of day

Update - Already caught one issue. Was simply my stupid mistake. How do I add a function to make this code rerun itself for each time block, so it updates on an open browser? - Thanks I am trying to have a simple gallery of images (For example 20…
Fatty
  • 11
  • 2
0
votes
1 answer

Logging into form at different times of day does different events

In my c# windows form application I have a webBrowser and a lot of buttons and 2 timers and other stuff. My form logs me into my college website and I have multiple classes throughout the week, my form has a clock in it and buttons that I click to…
HaKDMoDz
  • 37
  • 2
  • 10
0
votes
3 answers

How do I make a number of milliseconds into a timespan for use in Google Charts?

I have a column that is number of milliseconds that I'd like to use in a Google Charts chart to represent a duration. How do I turn that number into a time span?
0
votes
1 answer

Check is time inside a range

Im trying to perform a check is entered time inside specified time interval but Im stuck... I have one main block and another class which perform the check is the entered time inside the interval but I keep getting "No overload for method…
tslid
  • 315
  • 1
  • 4
  • 16
0
votes
4 answers

day of week and hour of day in a if statement c#

I want to do something if the day, and time of the day equal true in a if statement. I have the day part down, just can't figure out the time part out. Let say I wan the time to be 9AM. Here is what I have so far var dt_check_monday =…
nate
  • 1,418
  • 5
  • 34
  • 73
0
votes
2 answers

TimeOfDay giving incorrect time

I made a timer which refreshes every 1000 milliseconds and I put the code as: Private Sub RealTimeTMR_Tick(sender As Object, e As EventArgs) Handles RealTimeTMR.Tick TimeLBL.Text = TimeOfDay.ToLocalTime.ToString End Sub One would suspect this…
Kraxed
  • 352
  • 2
  • 11
  • 26
-1
votes
1 answer

how to format 24 hours format timeofday into 12 hours format flutter

when user using 24 hours format, I have pick time with showTimepicker have set alwaysUse24HourFormat:false and when selecting time displays in 12 hour format but selected timeofday is 24 hours format ,so how change it into 12 hours format? I tried…
Deva
  • 70
  • 9
-1
votes
1 answer

Get period between two times

I have two string time. How can I get a duration of period between theese two time? I try to use DateTimeFormatter, but it doesn't work. val startTime = LocalDate.parse("19:30", DateTimeFormatter.ofPattern("HH:mm")) val endTime =…
Jekis Osipov
  • 133
  • 10
-1
votes
1 answer

How to import a CSV with an hour/minute string as a timestamp to panda dataset

I need to import a CSV to a panda dataset. The CSV has columns with just a time of the day, an example is a columns with "16:45" at a minutes level, another column has "21:03:39" at the seconds level. Importing it using read_cvs and using…
-1
votes
1 answer

Convert any time zone to another (Java)

String time ="6:30" How can I convert it to CST time zone? If a user enters any time, it should convert into CST.
Akshay Kala
  • 159
  • 1
  • 1
  • 4
-1
votes
2 answers

How to customize the HH:mm format in Java

I am using HH:mm format to print the hour and minute in java. It will give the time in format 05:12, 00:04. But my requirement is to get with single digit hours: 05:12 => 5:12 00:04 => 0:04 10:18 => 10:18 Below i have the code which i am running…
Mandrek
  • 1,159
  • 6
  • 25
  • 55
-1
votes
5 answers

How to take Time Input in a line in Java?

The problem is for Java I want to take time input as follows 12:00 AM 11:42 PM There will be a sequence of such inputs up to N lines. Here two different Time Inputs are given 1)12:00 AM 2)11:42 PM but they are in the same line. The time inputs…
-1
votes
1 answer

Java function algorithm to add minutes to time

I'm writing a function that adds minutes to a time string - without using any libraries for Time. The function takes two arguments - The first, a "time" ([H]H:MM AM|PM) String, in the format of something like 12:00 AM or 3:30 PM (12-hour clock, no…
ennth
  • 1,698
  • 5
  • 31
  • 63