Questions tagged [time]
Measuring the time it takes to perform an operation. Also, questions related to obtaining the current time, calculating on times, formatting and parsing times, etc.
time
29,882
questions
0
votes
1
answer
28
views
How can I manage to run a single processor project with all processor cores?
import multiprocessing, time
mpCores=multiprocessing.cpu_count()
print("This PC has", mpCores,"cores. Currently only utilising 1, upgrades to follow")
tic = time.perf_counter() ...
0
votes
1
answer
44
views
count the number of minutes from the start time
I have a vector with minutes, seconds and fractions of seconds
tm <- structure(c("49:03.3", "49:05.5", "49:07.8", "49:10.1", "49:12.3", "49:14....
0
votes
1
answer
30
views
R How to reframe data to connect start and stop times
I have a data set that describes narwhal behaviours. There are eight whales (whaleID), multiple behaviours (behaviour), each whale can interact with none, some or all of the other whales (modID), and ...
0
votes
1
answer
26
views
AHK Multiple clocks showing time from different time zones
Good day,
I'm trying to create a script for AutoHotKey (AHK) which would show in a GUI multiple digital clocks (with different time zones). I already created a simple script with 3 different clocks ...
0
votes
0
answers
15
views
convert string to timestamp in pinescript
I'm importing a string that i then turn into an array. i would like to use the date and time values inside the array to draw lines from. The issue seems to be that a const string is expected. Is there ...
-1
votes
2
answers
53
views
output value as timevalue - I think
I have this working code I'm using for lap times for races, or I wanna use.
Right now I can fill out a list for players and their lap times using Rows-count - it works great, and then I use If-error ...
1
vote
2
answers
45
views
data frame breakdown by year, rounding up by duration of each period
I have a data frame of county executives and the first and last years they served.
I am running a panel study with county-year as the unit of analysis. The date range is 2000 to 2009.
I will like to ...
1
vote
2
answers
46
views
Highlight column in Excel based on time block
I have an Excel spreadsheet that shows the employee schedule, and I need it to highlight or outline the column based on the current time. It doesn't have to be date specific and I am fine with it ...
0
votes
2
answers
70
views
Generate number based on time.Now() and some time ago [closed]
Do you happen to know any way to "calculate" some number based on time that is "contant" for following condition.
Let's say now it time.Now() and I need for example number that is ...
0
votes
2
answers
35
views
How to convert a time string measured in 24 hours cycle to 12 hours cycle?
I have a stored value of an hour in a 24-hour format in a variable named hour. My task is to convert this value to a 12-hour format and print the result.
I tried while-loops, if-elif-statements. I ...
0
votes
1
answer
72
views
What is best way to set time in a Rails app form so that the time is the same once I enter it and doesn't change?
I have a Rails 7 form where I enter in data to populate a database. I have a start_time and end_time in the form:
<%= f.time_select :start_time, :value => Time.now.strftime('%I:%M %p') %>
<...
-1
votes
0
answers
22
views
Time series forecasting over Fashion trend [closed]
Dataset I'm working over
I want to do fashion forecasting Over this data and I want to forecast the product_name over time, I was thinking to use prophet library but it can only handle univariate ...
0
votes
0
answers
22
views
How to convert Unix timestamp to zonedDateTime in ECharts?
I'm quite new to ECharts. I'm using it with Grafana.
The source database is InfluxDB and all the measurements are stored in the format: 1720788623000.
I want to make it a readable date for the x-axis ...
0
votes
0
answers
34
views
When given date and time of clocked work hours, how do I extract hours for weekdays and weekends? [closed]
What excel formula(s) can be applied to extract or completely separate weekday hours from weekend hours when given date and time...and weekday hours roll into the weekend?
I am trying to distinguish ...
3
votes
2
answers
35
views
ImportError: can't import name perf_counter. What may be the reason?
I`ve been working on my code for Micropython-flashed ESP8266, and well... this error occured:
from time import perf_counter
ImportError: can't import name perf_counter
I believe that the whole code ...