Skip to main content
Filter by
Sorted by
Tagged with
1 vote
0 answers
121 views

I have a SQL Server table that has a datetime column. Its default value is provided by the GETDATE() function. I want to select the millisecond portion of the value by using DATEPART() function. ...
Fevzi Kartal's user avatar
0 votes
0 answers
45 views

I'm trying to convert epoch to human-readable date but it is apparently giving wrong output. Below is my code that I'm using and it outputs 51700-02-27 20:20:00. When I convert this epoch using the ...
Zeeshan Anjum's user avatar
0 votes
1 answer
63 views

I don't know why, but difference between two timestamps gives wrong time as a result. Any thoughts? Timber.d("test delta, departed = $time1, plan = $time2") ...
Konstantin Konopko's user avatar
0 votes
2 answers
245 views

Lately I've been having an issue with Dates and Hierarchies in Power BI. The main issue is that any SQL query I load via Direct Query (even when the date columns are date data types and not date/time ...
Ryan Crary's user avatar
2 votes
2 answers
70 views

I am trying to calculate the length of the date-time string in a cell In Microsoft Excel I am using the LEN function to calculate the length of the date time string in cell C2. The value in C2 is 2017-...
Wosley Erving's user avatar
-1 votes
1 answer
46 views

The following lines new_variable = dataset['Time'].units[14:].rstrip() print ("NEW VARIABLE ", new_variable, type(new_variable), len(new_variable)) datetime_variable = datetime.datetime....
afernandezody's user avatar
1 vote
1 answer
309 views

According to the documentation, "for timestamp with time zone, the internally stored value is always in UTC (Universal Coordinated Time, traditionally known as Greenwich Mean Time, GMT). An input ...
YEL's user avatar
  • 17
-1 votes
2 answers
100 views

I have below code snippet : java.util.Calendar calendar = java.util.Calendar.getInstance(); curdate = "2025-01-31T12:27:00" def parsedDate = new Date().parse("yyyy-MM-dd'T'HH:mm:ss&...
Bhagyashri Patwardhan's user avatar
1 vote
4 answers
118 views

I am trying to calculate the mean time of day a particular activity occurs per participant in a long dataframe. Each participant has 7 timepoints of data, and I need to calculate the mean time of day ...
rookie11's user avatar
0 votes
1 answer
49 views

We have code line: $result = "{$list[ 'ga_event_start_date' ]} - {$list[ 'ga_event_end_date' ]}"; And the dates display as 'd M y' We need to remove the 'y' numeral. Can this be done in ...
user801347's user avatar
  • 1,382
1 vote
0 answers
101 views

I have Excel sheets I want to analyze in R to examine elapsed time between each teacher and student turns. I am using this code to import data: data_raw_all <- list.files(path ="coded_data&...
user10240216's user avatar
2 votes
1 answer
71 views

I have a dataset of messages being sent between two people (user A and user B) on different chats over time. I need to figure out how to track the datetime of the last but earliest user A message ...
rastrast's user avatar
  • 327
2 votes
2 answers
63 views

I have a dataset of messages being sent between two people (user A and user B) on different chats over time. I need to figure out how to track the datetime of the last, most recent user A message ...
rastrast's user avatar
  • 327
1 vote
1 answer
150 views

Obviously, printing now time, date and time zone is possible by using datetime and time module (one of many ways): timezone_name = time.tzname[time.localtime().tm_isdst] However I need to get 3 letter ...
Natalia's user avatar
  • 21
0 votes
1 answer
115 views

Let's say I need to change a datetime object by adding or subtracting some months. How to avoid the well known PHP month calculations? $monthstoadd=-1; //today is 2025-01-24 $date=new DateTime("...
Tobia's user avatar
  • 9,595
0 votes
0 answers
22 views

I'm attempting to use a wrapper around chrono::DateTime<Utc> in a struct that I'm using as a model for a database row. I am using a wrapper so that I can implement other traits on it. However, I ...
jovie's user avatar
  • 1
2 votes
1 answer
81 views

I have a data set of Datetime and Elevation (the below is the actual field data) that has a sigmoid shape and I'd like to fit a sigmoid curve to it, optimizing parameters for the best fit. That seems ...
Greg Gollaher's user avatar
0 votes
1 answer
151 views

I'm trying to convert datetime (2017-04-21 19:13:33.000) to this format "yyyy-MM-dd'T'HH:mm:sszzz" (2024-02-05T09:20:00+08:00) with timezone. I'm trying to create Article object for Google ...
Harinarayanan Nagarajan's user avatar
1 vote
1 answer
335 views

I have a time represented in a Kotlin Instant. I want to obtain the ISO 8601 datetime string for the local timezone on Android. But I'm running into conflicts with two separate classes called TimeZone,...
BobDoolittle's user avatar
  • 1,892
1 vote
3 answers
132 views

I put together a script to download the NYT daily crossword to PDF on my computer to then push to a tablet, but would love to insert a three letter day-of-week string "MON, TUE, etc." to the ...
Tyler Moore's user avatar
1 vote
1 answer
80 views

I have a date field CONTACT_DATE in a DATE format (2000-07-28 00:00:00.000). I want to add a WHERE clause to a query to return results where the CONTACT_DATE is within 6 months of the current date, as ...
data_nerd's user avatar
0 votes
0 answers
23 views

I need to track attendance and progress over 6 months, I have to schedule meetings monthly to check in with clients, I work part time Monday to Wednesday so the meetings have to be on these days. I am ...
Cieara Corcoran's user avatar
0 votes
1 answer
265 views

I have this java code: import org.joda.time.format.DateTimeFormat; import org.joda.time.format.DateTimeFormatter; import java.util.Date; DateTimeFormatter DATE_TIME_FORMATTER = DateTimeFormat....
Peter Penzov's user avatar
  • 1,074
1 vote
1 answer
85 views

I am using fullcalendar.io JS library to visualize the bookings on my rental company. I store the motorbikes as arrays of categories (engine sizes) with a children array containing all the motrobikes ...
Matteo Berra's user avatar
0 votes
1 answer
259 views

Could please someone explain why PostgreSQL with DBeaver shows the same date-time value in UTC greater than in Europe/Moscow time zone? My computer time zone is MSK or Europe/Moscow (UTC +03:00) I run ...
Dmitry Melnikov's user avatar