datetime Questions
4
Solved
I have a field for call length in my raw data which is listed as an object, such as: 00:10:30 meaning 10 minutes and 30 seconds. How can I convert this to a number like 10.50?
I keep getting errors...
Bobbie asked 5/2, 2015 at 20:15
3
I have this code:
from pr in e.ProgramSetup.Include("Program").Include("Program.Client")
where pr.DateBegin < DateTime.Now
&& pr.DateEnd > DateTime.Now.AddDays(pr.DateEndOffset)
s...
Salomesalomi asked 1/10, 2012 at 13:0
8
Solved
I'm trying to get my head around the datetime module. I know the time now as an epoch and the time an event last happened (as an epoch time). What I need to do is figure out whether that event happ...
4
Solved
I have reviewed the post Creating a DateTime object with a specific UTC DateTime in PowerShell, but it does not seem to directly answer the question I am asking:
What is the most direct method in P...
Osmanli asked 1/9, 2015 at 20:33
8
Solved
I have Done this
var d='dd/mm/yy hh:MM:ss';
var d1=d.split(" ");
var date=d1[0].split("/");
var time=d1[1].split(":");
var dd=date[0];
var mm=date[1]-1;
var yy=date[2];
var hh=time[0];
v...
Transport asked 17/6, 2015 at 12:39
2
Solved
I have a TIMESTAMP column with dates that I need to filter. I need to grab the data that is 5 days old. So current date - 5 days. My data is in BigQuery. I tried the following query:
where created_...
Translative asked 7/4, 2021 at 16:39
14
Solved
I have this : Datetime.Now(); or 23/10/2009
I want this : Friday
For local date-time (GMT-5) and using Gregorian calendar.
11
Solved
I am stuck in a weird situation and unfortunately, even after doing some RnD and googling, I am unable to solve this problem.
I have a date string in ISO format, like 2014-11-03T19:38:34.203Z and i...
Mousseline asked 19/11, 2014 at 9:11
4
Solved
I need to know whether the period defined by:
DateTime start;
DateTime end;
has a DST inside.
I am iterating over collection of periods defined by {start,end} and shifting start and end 24 hour...
4
Solved
I have a timestamp string that looks like this:
2019-02-16T10:41:20.6080000+01:00
I have to parse it to datetime. Because there are 7 instead of 6 digits for microseconds the following format do...
6
Solved
I have users entering in dates in a Ruby on Rails website. I parse the dates into a DateTime object with something like:
date = DateTime.new(params[:year].to_i, params[:month].to_i, params[:day].t...
Catton asked 6/4, 2013 at 9:13
5
Solved
I am trying to deserialise the following JSON
{"serverTime":1613967667240}
into an object of the following class
public class ApiServerTime
{
[JsonPropertyName("serverTime")]
...
Acidulous asked 22/2, 2021 at 5:24
5
Solved
I have a tab delimited file which is being parsed and then inserted into a database. When I run into the date column, I have trouble parsing it.
The code I have is:
var insert = DateTime.ParseExa...
15
I'm looking for a way to use DateTime to parse two dates, to show the difference.
I want to have it on the format: "X years, Y months, Z days".
For JS, we have momentjs library and following code:...
However asked 3/6, 2020 at 10:13
9
Solved
Hi I am using pandas to convert a column to month.
When I read my data they are objects:
Date object
dtype: object
So I am first making them to date time and then try to make them as months:
i...
2
Solved
I am trying to parse an object of the class TimeOnly to DateTime (And of course there is no date in TimeOnly object, I just need a DateTime object which has the same time.)
We can convert DateOnly ...
5
Solved
How can i convert a date like this: 2012-07-16 01:00:00 +00 (it's in the UTC +00:00 timezone) to UTC +04:00 timezone? Ensuring that daylight saving will be handelled correctly?
11
Solved
I have a stored procedure that has to accept a month as int (1-12) and a year as int. Given those two values, I have to determine the date range of that month. So I need a datetime variable to repr...
Eugeniaeugenics asked 12/10, 2010 at 15:36
6
Solved
I have a DateTime stored in universal time (UTC) of value 2010-01-01 01:01:01.
I would like to display it in EST in this format 2010-01-01 04:01:01GMT-04:00, however the 'K' formatter for timezone...
Allodium asked 23/7, 2010 at 23:36
5
Solved
I'm using the pytz module to translate a date from America/Los_Angeles timezone to UTC using the code below:
TZ = 'America/Los_Angeles'
from = pytz.timezone(TZ)
utc = from.localize(original_date).a...
3
Solved
I am using both the native Datetime and the Noda Time library LocalDate in the project. The LocalDate is mainly used for calculation whereas Datetime is used in rest of the places.
Can someone pl...
Heiser asked 9/8, 2016 at 6:9
6
Solved
I have a code where I have to "round" to the lowest minute.
16:05:00 should become 16:05:00
16:05:01 should become 16:05:00
16:05:29 should become 16:05:00
16:05:30 should become 16:05:00
16:05:3...
6
Solved
There's another question here that asks how many seconds since midnight -
this question is the opposite.
How do I get the seconds until the end of the day, from the current time, using python?
17
Solved
I'm trying to add n (integer) working days to a given date, the date addition has to avoid the holidays and weekends (it's not included in the working days)
5
Solved
I'm working on PDF with Python and I'm accessing the file's meta data by using PDFMiner. I extract the info using this:
from pdfminer.pdfparser import PDFParser, PDFDocument
fp = open('diveintopyt...
© 2022 - 2024 — McMap. All rights reserved.