Questions tagged [datetime]

5 votes
1 replies
Why does the Chrome V8 JavaScript engine recognize “TG-1” through “TG-12” as valid dates/times?
I implemented a CSV parser that guesses the type formats for each column but I have found that the JavaScript Date class believes "TG-1" is a val...
-1 votes
1 replies
DateTime compare (between) Date with day month year hours minutes and seconds [duplicate]
This question already has an answer here: How to know if a DateTime is between a DateRange in C#...
asked 4 months ago
-1 votes
2 replies
Java - Date format for Multiple Scenarios
I have a java component to format the date that I retrieve. Here is my code: Format formatter = new SimpleDateFormat("yyyyMMdd");...
asked 4 months ago
-1 votes
2 replies
How do I give boolean value to decide is my timestamp is holiday and weekends or not in Dataframe in python
I have a dataframe calendar, it contains date and is holiday or not. I have another dataframe contains datetime timestamp, and i want to check e...
0 votes
0 replies
How to fix import of timestamp field in hive?
I have a file in HDFs that I imported to Hive in the following way: CREATE EXTERNAL TABLE IF NOT EXISTS tb_abc_test ( Receive_Time String, ....,...
asked 4 months ago
0 votes
0 replies
How to divide time with Interval of 30 Minutes from starting to ending time in PHP [duplicate]
I needed a list of times like so in an array... 12am 12:30am 1:00pm ... How can I do this with PHP? 8 7 Answers...
asked 4 months ago
0 votes
1 replies
How to sort a list first by date and then by time in Python?
I have a list that contains DateTime objects that has come from database. I need to first sort it by date and take the latest date, for the lates...
1 votes
0 replies
time zone conversion issue using shopify liquid template
I am dealing with some date information from a JSON. I'm using Shopify's liquid template to traverse thru the JSON and extract the date time entr...
0 votes
1 replies
How to get DateTime.Now , starting from an offset
I have a scenario where i need the DateTime.Now property to start with a given date and then on next calls to just continue from there. I need...
asked 4 months ago
0 votes
1 replies
how to save and compare datetime values in C# and asp.net core?
I'm writing a web app using asp.net core and entity framework core; i want to set current date and time for db objects when they are created and...
-1 votes
2 replies
Python Date Time Giving Wrong Value
I am running this code to get timestamp from string But it giving wrong value for some particular value. import datetime import time print(date...
asked 4 months ago
2 votes
2 replies
r merge and create a dataframe based on time constraint
I have a dataset with two columns, ID and Start_Date as shown below ID Start_Date 19 2016-11-24 19 2016-11-26 3C...
asked 4 months ago
0 votes
1 replies
Is there a way to retrieve a datetime field to a specific timezone by default in Django?
I've an attribute in a django model like : created_at = models.DateTimeField(auto_now_add=True) and in my settings.py I've configurations like...
0 votes
0 replies
How to concatenate month and day from full-format dates in pig
I uploaded a names column and a dates column in PIG that appear in the following format: 'yyyy / MM / dd HH: mm: ss'. I want to show the column o...
asked 4 months ago
3 votes
2 replies
How to convert datetime from decimal to “%y-%m-%d %H:%M:%S” given the time origin?
I did my search around but I couldn't find an answer that satisfies my problem. I am using python 3.7 and I need to convert a series of decimal...
asked 4 months ago
0 votes
2 replies
Parse a date from an export of a lotus notes base
In a C# application, I have to parse an xml file which is an export of a lotus notes database. The exports contains dates in this format : <...
asked 4 months ago
0 votes
1 replies
Implementing Datetime entities (Synonyms) into dialogflow
Currently, I'm implementing reminders in dialogflow using a webhook. I'm having problems recognising a specific word: "A minute" I want Dialogflo...
1 votes
2 replies
Reset pandas Timestamp to first day of month
df is a pandas data frame. The column df["Date"] is a datetime field. test_date = df.loc[300, "Date"] # Timestamp('2019-02-12 00:00:00') I wa...
asked 4 months ago
1 votes
1 replies
DateTime.TryParseExact() not recognizing the PM designator, AM working as expected
I am writing a program to read log files, converting timestamps along the way. Currently, I am using DateTime.TryParseExact() to quickly analyze...
asked 4 months ago
0 votes
1 replies
Converting a date from long format to LocalDateTime format in Java 8 [duplicate]
This question already has an answer here: How can I create a Java 8 LocalDate from a long Epoch time in Milliseconds?...
asked 4 months ago
0 votes
1 replies
How to filter by a part of the date dynamically
If I want to build a specific rule in dynamic query where part of the condition states that the same month of the year I have the following...
1 votes
2 replies
How to use loop to get values out of Pandas dataframe?
I would like to loop through each value in startDayValStr, endDayValStr, startTimeValStr, endTimeValStr and use the values as parameters in a URL...
asked 4 months ago
0 votes
3 replies
The time data does not match format
Hello I am trying to convert a string which is a = "2019-04-22 00:00" to a datetime but it does not work, I tried this : a = datetime.datetime....
asked 4 months ago
0 votes
0 replies
Query on DateTime Field, always returns storage error
I am trying to query a dateTime field in my storage table, but no matter which dateTime field I query, I always get a storage error. Query on any...
asked 4 months ago
0 votes
1 replies
How to annotate a queryset with number of days since creation
I'm trying to do some complex ordering based on promotions: an article is promoted every 7th day since creation (the articles expire after 30 day...