Skip to main content

Questions tagged [time]

-1 votes
2 answers
270 views

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
1 vote
4 answers
211 views

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
1 vote
2 answers
466 views

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
  • 207
4 votes
6 answers
2k views

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,015
4 votes
3 answers
643 views

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
  • 149
25 votes
13 answers
10k views

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
1 vote
3 answers
145 views

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
  • 149
-2 votes
1 answer
399 views

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
  • 21
0 votes
1 answer
84 views

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
2 votes
3 answers
227 views

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
  • 281
0 votes
3 answers
389 views

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
4 votes
2 answers
715 views

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
  • 934
5 votes
3 answers
525 views

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
1 vote
4 answers
979 views

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
  • 767
-2 votes
2 answers
275 views

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

15 30 50 per page
1
2 3 4 5
7