time Questions

5

Solved

I was working on a project and wanted to add the difference in DateTime in terms of minutes, hours, days, weeks, months and years. I was able to get in minutes up to days. e.g. DateTime.now().diff...
Dambro asked 14/10, 2019 at 11:21

1

I'm trying to display a local time using postgres-rs, with time-rs 0.3 instead of chrono-rs 0.4. But with the timezone set to Europe/Amsterdam, all I get is UTC timestamps with no timezone informat...
Hoashis asked 1/10 at 8:45

3

I would like to find (in python) the local minimum and maximum values in OHLC data, under the condition that the distance between these values is at least +-5%. Temporal Condition Note that for an...
Rehnberg asked 6/7, 2023 at 13:20

3

The clock_gettime function requires a struct timespec object as an argument. https://linux.die.net/man/3/clock_gettime In the date and time utilities section of the C standard library, there is a f...
Terzas asked 16/8, 2021 at 14:22

6

Solved

How to get the current date in unix-epoch? timeIntervalSince1970 prints the current time. Is there any way to get today's time at 12 AM? For example, The current time is : Jan 7, 2018 5:30 PM. tim...
Stepheniestephens asked 8/1, 2019 at 1:10

5

I am trying to run the notebook in google colab. I am wondering if there is way for me to know if the cell is run and how long it took to run the cell (in milliseconds)
Animus asked 17/6, 2021 at 16:49

2

Solved

I am trying to get timestamps that are accurate down to the microsecond on Windows OS and macOS in Python 3.10+. On Windows OS, I have noticed Python's built-in time.time() (paired with datetime.fr...
Heckelphone asked 11/2, 2022 at 23:9

2

Solved

I have a case to check the store opening-closed hours. Im solve this using the code below: final _openHours = 09; final _openMinute = 00; final _closeHours = 15; final _closeMinute = 00; var now ...
Bardo asked 22/1, 2019 at 0:30

4

Solved

I want to know how virtual machines (VMWare) updates their date and time and how to disable this; because i noticed that even if i suspend/shutdown a virtual machine for a year when i'll turn it on...
Microphone asked 16/5, 2014 at 15:28

3

Solved

I'm in the process of creating an android app that makes extensive use of the time & date functions in android, including many uses of AlarmManager. For testing though, it's a big pain to chang...
Kaiulani asked 3/3, 2011 at 18:24

8

Here I have a table with a time column (datatype is integer), now I need to convert the integer value to time format HH:MM:SS:00 in SQL Server 2008. Also need clarification in the above time forma...
Seattle asked 24/9, 2012 at 15:43

9

What would be an elegant, efficient and Pythonic way to perform a h/m/s rounding operation on time related types in Python with control over the rounding resolution? My guess is that it would requ...
Copula asked 24/7, 2011 at 11:21

3

Solved

I'm looking for a way to display the current GMT-0 time. So far, I've been doing it like: let UTCDate = Date() let formatter = DateFormatter() formatter.dateFormat = "yyyy-MM-dd HH:mm:ss" le...
Okelley asked 29/12, 2016 at 16:17

4

Solved

I have reviewed the post Creating a DateTime object with a specific UTC DateTime in PowerShell, but it does not seem to directly answer the question I am asking: What is the most direct method in P...
Osmanli asked 1/9, 2015 at 20:33

7

Solved

In JavaScript, I can assign: var now = Date.now(); Then use now to calculate as a number variable time.Time type in Go doesn't seem to meet this demand. What is the Go equivalent of JavaScript's...
Innocence asked 17/3, 2016 at 3:31

3

Solved

I use VideoJS, a HTML5 video player By default it displays the remaining time (countdown) instead of the normal current time (like youtube) Any ideas how to "fix" it? You can see a live example a...
Telles asked 10/3, 2013 at 15:43

6

I am new to C++ - I wanted to make a program to add and subtract time using a HH:MM format. Sample Input: 12:00 + 3:00 - 6:00 Sample Output: 9:00 Another Sample Input: 9:00 + 8:00 + 13:00 - 2:25 ...
Lobbyist asked 22/12, 2012 at 4:58

9

Hello I am trying to add the date and time to a file name in JAVA. I can get the date and time printed within the file, which I also want done, but when I place the toString in the FileWriter I get...
Hicks asked 18/6, 2012 at 17:39

8

I want to display current time on a label using C# but time will continuously change as system time changes. How can I do this?
Ito asked 17/2, 2011 at 6:42

9

Solved

I want to perform data time operations using hibernate HQL. I want to add and subtract two dates as well as I want to subtract 1 year or 1 month from a particular date. How is this possible using...
Mogador asked 24/6, 2009 at 6:15

4

Solved

I'm using the chrono crate; after some digging I discovered the DateTime type has a function timestamp() which could generate epoch time of type i64. However, I couldn't find out how to convert it ...
Boarder asked 3/3, 2017 at 6:29

8

Solved

So, I know I can get current time in milliseconds using JavaScript. But, is it possible to get the current time in nanoseconds instead?
Extraterritoriality asked 14/5, 2011 at 15:29

4

I can pass in a time to my widget, but my widget is supposed to be instantiating the time in itself, not receiving a DateTime from a parent widget.
Caterwaul asked 7/12, 2018 at 17:8

5

Solved

I have a loop of instructions, such as (pseudocode): for i = 1 to 1000000 // Process the ith input doSomething(input[i]) end This takes a long time to complete. I would like to output some kin...
Raincoat asked 20/8, 2012 at 0:44

5

Solved

How would I get the current timestamp in python of India? I tried time.ctime() and datetime.utcnow() also datetime.now() but they all return a different time than here it is in india. The codes abo...
Beetle asked 28/8, 2020 at 5:54

© 2022 - 2024 — McMap. All rights reserved.