datetime Questions
1
Solved
I am currently working with Java's DateTimeFormatter to parse ISO 8601 formatted timestamps, particularly those containing fractional seconds. While experimenting with different timestamp formats, ...
Tother asked 3/10 at 10:26
2
Solved
DateTime::Locale has a very comprehensive list of date and time formats for various locales and countries. I would like to use it in emails to customers, depending on which country the customer is ...
3
Solved
For the showTimePicker function in Flutter used to select a time, is it possible to set a defined time interval (such as 15 minutes) to prevent users from selecting any other timing?
Currently, thi...
Intine asked 29/6, 2020 at 5:50
5
Solved
Is it possible to parse a date and extract the week of month using Joda-Time. I know it is possible to do it for the week of year but I cannot find how/if it is possible to extract the week of mont...
4
Solved
String temp_date="07/28/2011 11:06:37 AM";
Date date = new Date(temp_date); //Depricated
SimpleDateFormat sdf = new SimpleDateFormat("MMM-dd-yyyy hh:mm:ss");
String comp_date= sdf.format(date);
...
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...
2
Solved
I like to interpolate a time series, so that the timestamp is exact 0.1 Hz. So the first step maybe would be something like
library(tidyverse)
library(zoo)
options(digits.secs = 3, pillar.sigfig ...
Osteoma asked 18/9 at 14:26
2
Solved
I'm using ASP.Net 4 EF 4.3.1 Code First Migrations.
I have an existing model class. I've added a property to it:
public DateTime LastUpdated { get; set; }
When I run update-database -force -ver...
Kent asked 5/6, 2012 at 22:43
6
Solved
I want to generate next working day using JavaScript.
This is my code as of now
var today = new Date();
today.setDate(today.getDate());
var tdd = today.getDate();
var tmm = today.getMonth()+1...
Einstein asked 25/8, 2016 at 6:13
3
During troubleshooting, I came across this weird behaviour which occurs when parsing text to create a DateTime object in C# (in .Net Core 8.0).
Can anybody explain why the following statements retu...
5
Solved
I have this dataset
library(dplyr)
# creating a dataframe
data_frame <- data.frame(id = c(1,1,2,2,3,3),
col2 = c("start", "finish", "start", "finish",&q...
4
When working with dates, I have been using DateTime2 type in SQL Server to store C# DateTime.
.NET 6 has introduced new structs such as DateOnly and TimeOnly. I assume these should be mapped to Dat...
Xylol asked 8/2, 2022 at 7:39
2
Solved
I need to add a microsecond to a Datetime object in PHP. I am trying to do it adding a time interfal a fraction of a second to the Datetime but it is not working.
$date = new Datetime('2018-06-05 ...
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...
2
Solved
I have a variable which is grabbing a date object from a file. My aim is to add a timezone to this object so that it automatically changes the time based on the date its it then. So I expected it t...
Miscreant asked 16/12, 2020 at 7:36
8
Solved
I am writing some Python code to create an order with the Binance API:
from binance.client import Client
client = Client(API_KEY, SECRET_KEY)
client.create_order(symbol='BTCUSDT',
recvWindow=599...
Gayelord asked 18/3, 2022 at 17:10
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 ...
2
Solved
I have a polars dataframe that contains a datetime column. I want to convert this column to strings in the format %Y%m. For example, all dates in January 2024 should be converted to "202401&qu...
Codeclination asked 6/8 at 21:9
1
Solved
MongoDB Aggregation - Find Documents within Specific Hour Range and Date
I have a MongoDB collection with documents containing an orderDate field of type ISODate. I want to find the documents where...
Stereograph asked 6/8 at 14:21
6
Solved
I have to check if a date (month-year) is minus than actual date.
I know how to do it only with single month or year, like
DateTime.Parse(o.MyDate).Month <= DateTime.Now.Month
or
DateTime...
6
Solved
I'm preparing a query for mySQL to grab record from the previous week, but I have to treat weeks as Monday - Sunday. I had originally done this:
WHERE YEARWEEK(contactDate) = YEARWEEK(DATE_SUB(CU...
2
Solved
I want to know the reason why my C# date is larger than the SQL date even though the C# code is running first and after that the SQL query,
Logically the SQL date should be greater than C# date.
Fo...
Ellanellard asked 25/7 at 11:17
4
Solved
I m getting start time 634942626000000000 and end time 634942638000000000. How can I convert it to a Unix timestamp? I want to display formatted date/time in PHP?
5
I am having the time values as follows
starttime like : 09:00:00 ,
endTime like : 10:00:00 ;
here no date value is needed.
so this values need to calculate difference and convert into hours and mi...
Ul asked 25/10, 2013 at 7:21
1 Next >
© 2022 - 2024 — McMap. All rights reserved.