Tag: time

59 votes
10 answers
1.6K views
What is the standard way to add N seconds to datetime.time in Python?

Given a datetime.time value in Python, is there a standard way to add an integer number of seconds to it, so t

avatar
Janella
0 1 0 9
asked 07 September, 2021
56 votes
30 answers
439 views
Determine Whether Two Date Ranges Overlap

Given two date ranges, what is the simplest or most efficient way to determine whether the two date ranges ove

avatar
Juliane
0 1 0 9
asked 07 September, 2021
59 votes
15 answers
405 views
MySQL Query GROUP BY day / month / year

Is it possible to make a simple query to count how many records I have in a determined period of time like a y

avatar
Lashawna
0 1 0 9
asked 07 September, 2021
58 votes
26 answers
1.9K views
How do you set a default value for a MySQL Datetime column?

How do you set a default value for a MySQL Datetime column? In SQL Server it's getdate(). What is the eq

avatar
Jesenia
0 1 0 9
asked 07 September, 2021
52 votes
30 answers
925 views
Should I use the datetime or timestamp data type in MySQL?

Would you recommend using a datetime or a timestamp field, and why (using MySQL)? I'm working with PHP

avatar
Trudy
0 1 0 9
asked 07 September, 2021
62 votes
14 answers
1.7K views
YYYY-MM-DD format date in shell script

I tried using $(date) in my bash shell script, however, I want the date in YYYY-MM-DD format. How do I get thi

avatar
Adolfo
0 1 0 9
asked 07 September, 2021
62 votes
8 answers
391 views
Get users by name property using Firebase

I'm trying to create an application where I can get/set data in specific users accounts and I was tempted

avatar
Stacia
0 1 0 9
asked 07 September, 2021
54 votes
7 answers
1.7K views
Firebase Permission Denied

I'm relatively new to coding and am having trouble. I have this code to send data to firebase app.useri

avatar
Dorinda
0 1 0 9
asked 07 September, 2021
75 votes
10 answers
806 views
Compilation failed to complete:Program type already present

When compiling my project I get the following error message: Program type already present: com.google.androi

avatar
Thurman
0 1 0 9
asked 07 September, 2021
59 votes
6 answers
1.1K views
Firebase cloud functions is very slow

We're working on an application that uses the new firebase cloud functions. What currently is happening i

avatar
Santiago
0 1 0 9
asked 07 September, 2021
55 votes
9 answers
1.7K views
How to protect firebase Cloud Function HTTP endpoint to allow only Firebase authenticated users?

With the new firebase cloud function I've decided to move some of my HTTP endpoint to firebase. Everythin

avatar
Fabian
0 1 0 9
asked 07 September, 2021
54 votes
7 answers
414 views
Query based on multiple where clauses in Firebase

{ "movies": { "movie1": { "genre": "comedy", "name": "As good as it gets", "lead": "Ja

avatar
Rudolf
0 1 0 9
asked 07 September, 2021
59 votes
7 answers
1.4K views
What's the difference between Cloud Firestore and the Firebase Realtime Database?

Google just released Cloud Firestore, their new Document Database for apps. I have been reading the documenta

avatar
Jeff
0 1 0 9
asked 07 September, 2021
53 votes
13 answers
2.3K views
Converting between datetime, Timestamp and datetime64

How do I convert a numpy.datetime64 object to a datetime.datetime (or Timestamp)? In the following code, I cr

avatar
Adolfo
0 1 0 9
asked 07 September, 2021
52 votes
3 answers
1.4K views
How to speed up MonoTouch compilation time?

It is well known that If compiling takes even 15 seconds, programmers will get bored while the compiler ru

avatar
Jefferey
0 1 0 9
asked 07 September, 2021
59 votes
4 answers
3.2K views
How to format date and time in XAML in Xamarin application

I have a set up XAML code below. <Label Text="{Binding Date}"></Label> <Label Text="{Binding T

avatar
Renaldo
0 1 0 9
asked 07 September, 2021
61 votes
29 answers
1.6K views
Rounding a double value to x number of decimal places in swift

Can anyone tell me how to round a double value to x number of decimal places in Swift? I have: var totalWor

avatar
Ali
0 1 0 9
asked 07 September, 2021
55 votes
23 answers
2.9K views
@selector() in Swift?

I'm trying to create an NSTimer in Swift but I'm having some trouble. NSTimer(timeInterval: 1, targ

avatar
Majorie
0 1 0 9
asked 07 September, 2021
54 votes
24 answers
2.6K views
Converting string into datetime

I've got a huge list of date-times like this as strings: Jun 1 2005 1:33PM Aug 28 1999 12:00AM I&apos

avatar
Fabian
0 1 0 9
asked 07 September, 2021
66 votes
30 answers
964 views
How to get the current time in Python

What is the module/method used to get the current time?

avatar
Dario
0 1 0 9
asked 07 September, 2021