Skip to main content

Questions tagged [time]

-1votes
2answers
195views

Best Practices for Storing Operational Hours Extending Past Midnight in MySQL

I'm building a PHP application to manage business operating hours, including cases where the closing time extends past midnight. I'm considering various ways to store these hours in MySQL and need ...
tony's user avatar
  • 145
1vote
4answers
197views

Are group time estimates standard?

Our team assigns time estimates to tasks (not stories) in a group setting, so one of us will give an estimate that then anyone who picks up the stories has to meet or else gets questioned about it. ...
Pet's user avatar
  • 27
1vote
2answers
412views

High-cardinality UUID: how/where to store? [closed]

I have lots of devices, each identified by a unique UUID. For each device, I have one or more timeseries data (potentially up to millions of entries). What's the best way to store these entries? ...
persson's user avatar
4votes
6answers
2kviews

How do I determine how long a refactoring effort will take?

After much hard work, I've convinced my manager that some absolutely awful code needs refactoring. As with any project, they've asked me for a time estimate and I've found myself stumped. How can I ...
J. Mini's user avatar
  • 1,007
4votes
3answers
611views

Using Gregorian Year vs using Mean Tropical Year

I was working on a small CLI tool to convert between time units and seconds. Someone filed an issue about how the code was treating a year as 365.25 days while the Gregorian year is supposed to be 365....
An Ant's user avatar
25votes
13answers
10kviews

How much time should you spend planning a commit before writing code?

At the moment I'm spending more time planning out a commit than actually writing code when adding a new feature. Less than two hours would be lucky, and sometimes I'd spend a good part of the day ...
Tom Huntington's user avatar
1vote
3answers
132views

How to model a time-distributed process in functional programming style?

I'm searching for any formal/generic approach to modeling a process distributed in time with functional programming. Here is an example. Let's implement a very simple notification service. It accepts ...
Anthony's user avatar
-2votes
1answer
353views

Why does DateInterval lack weeks, quarters/seasons, as well as decimal/float versions of each property?

This has puzzled and frustrated me for years: https://www.php.net/manual/en/class.dateinterval.php y Number of years. m Number of months. d Number of days. h Number of hours. i ...
Nafur's user avatar
0votes
1answer
75views

Find concurrent users with timeranges

So my question is more algorithm based rather than code or architectural problem. I have a problem where I am given an array of object like this: [{joinedAt: <Timestamp>, leftAt:<Timestamp>...
Muhammad Faizan's user avatar
2votes
3answers
200views

When does a *fixed delay* make sense?

Every now and then I see someone delaying an action by a certain number of milliseconds to ensure it is working. Something like: doSomethingInHtml(); timer.schedule(100); // delay for 100 milliseconds ...
Adelin's user avatar
0votes
3answers
358views

How to control time with API testing?

I'm trying to test an API (see API testing). Some operations depend on time. Here are some examples: A post may only be edited within the first 5 minutes You may not try to login more than 10 times ...
Shoe Diamente's user avatar
4votes
2answers
677views

Can Time be a Primary Actor in the Hexagonal Architecture?

I really like the fundamental principles behind the Hexagonal Architecture (Ports and Adapters) and I have mostly applied it to my system/application. There is one thing that I wasn't able to ...
Guven's user avatar
5votes
3answers
472views

Fastest way to generate (machine wide) unique 64 bit timestamps on Windows

Here are some of the characteristics of my problem: I must generate unique 64 bit timestamps across processes on a single machine. I am very much limited to those 64 bits. This seems to rule out using ...
ChristopheD's user avatar
1vote
4answers
909views

Why do many programming languages and applications use integer instead of floating point to represent time?

In my experience, the value of time mostly is represented by integer number, by programming languages (C/Java/Golang/Javascript(*)...), and by databases (MySQL, Postgres...), exceptions maybe some GUI/...
Yoshi's user avatar
-2votes
2answers
255views

Backtracking with big inputs

I'm doing a Magic Square problem, and I'm using backtracking tecnique for do it. So, the magic square asks you for an input which is the size of the square, and you generate this square, and you need ...
OnlyDavies's user avatar

153050per page
close