Questions tagged [utc]

UTC stands for Coordinated Universal Time - it is the time standard by which the world regulates clocks and time.

UTC stands for Coordinated Universal Time - it is the time standard by which the world regulates clocks and time.

Questions relating to UTC can relate to date-time formatting, conversions etc.

Definition taken from - WikiPedia

2332 questions
0
votes
1 answer

"TypeError: can only concatenate str (not "list") to str" why this error is showen to me?

from datetime import datetime, timedelta from pytz import timezone import pytz import re while True: times=['Brazil','Hongkong','Australia','Mexico','US','Poland','Singapore','Portugal','Japan','Israel'] …
0
votes
0 answers

How to convert UTC to EST in Java

Morning all, We just had our vendor do an upgrade and converted everything to UTC, but the export we get isn't converting to EST. This is causing issues. I'm trying to determine how to alter this template to give us the right time zone. I think…
Stevnx
  • 11
  • 2
0
votes
1 answer

TypeError: expected string or bytes-like object in re

I want to grab 'Asia/Tel_Aviv' and 'Asia/Jeruslam' from this huge list, here is the full code: import pytz alltmzn=pytz.alltimezones print(alltmzn) t=alltmzn[234:332] for i in re.findall("^J|Tel",t): print(i) error: TypeError …
0
votes
1 answer

Convert Update CRUD Form Date in Angular

When the date of 3/2/2021 is selected on my create CRUD form in Angular, it is passed to mongodb as 2021-03-02T00:00:00.000+00:00, then displayed on my update CRUD form as 2021-03-02T00:00:00.000Z. How can I convert that to 'M/d/yyyy'? (On my my…
Mark
  • 23
  • 2
0
votes
2 answers

Convert date and time from UTC to local in specifed format

I have UTC date time as 2021-02-24 12:41:40. I want to get it converted into local timezone in 24 hour format i.e. "IST" in same format i.e. 2021-02-24 18:11:40. I referred many answers on Stackoverflow, but I am not able to get the result in…
Tech Girl
  • 169
  • 2
  • 17
0
votes
0 answers

How to eliminate timezone specification?

I converted my Time column to datetime values using this code: df1['Time'] = pd.to_datetime(df1['Time'],utc=True) These are UTC timestamps whcih is fine. The column looks now like this: I now want to eliminate the timezone specification +00:00 for…
Tobitor
  • 1,388
  • 1
  • 23
  • 58
0
votes
1 answer

How can I convert float number into minutes to be added to the current UTC time with Javascript?

I apologise in advance for being a complete dunce but these are in fact my very first shaky steps into trying to get something done with Javascript and I feel somewhat lost and confused. I have the following float: 53.93 This decimal value…
0
votes
0 answers

How to find all DateTime properties of anonymous object?

I want to convert all dates received from client into UTC before processing them in server side code. I am thinking to use ActionFilter where I want to find all the date fields from Request payload and convert those into UTC dates. I know Reflection…
PPN
  • 16
  • 3
0
votes
0 answers

C++ UTC to local timezone

I am trying to get time and date in my local timezone (UTC-3) from a string timestamp (ex "1612909488"). I was looking for a solution in C++ but each example or code i saw only got the time and date from timestamp without applying the local…
Tomrod
  • 3
  • 3
0
votes
1 answer

Date format in our Application

Can anyone tell me which is the right format to store date in my database. Suppose if the client and the server are in the same region, we can use unix epoch timestamp or date string. But if the server is in US and the client is from Asia, I knew…
Jaga
  • 63
  • 1
  • 8
0
votes
1 answer

Grpc deadlines and time zones causing deadlineExceeded

I am making a AsyncServerStreamingCall to a gRPC api hosted on the same machine as the calling application. I am specifying CallOptions within which I am providing a deadline. The deadline is set like the below new CallOptions(null,…
gdsl88
  • 11
  • 2
0
votes
2 answers

How can I query UTC-dates for the client's current day?

My goal is to query the database for entries of the current day. Let's say the user saves a row with a time of '2021-01-27 01:00' and one with '2021-01-27 00:59'. The time zone is GMT+1 so it will be stored in the database in UTC like this: row1:…
Snaketec
  • 471
  • 2
  • 14
0
votes
0 answers

Convert 13 digit UTC epoch time to Java Instant UTC format?

I need a java function to convert 13 digit epoch utc time in milliseconds to Java Instant time in UTC. Can anyone please help? input : 1611476543540 output : 2021-01-24 08:23:13
Ann
  • 217
  • 1
  • 9
0
votes
1 answer

MariaDB native UTC time on update

I’m searching for a value that changes the value of a column to the current UTC time when the row is updated, but UTC_TIMESTAMP and GETUTCDATE only works as default value, not when used in ON UPDATE. Is there a solution or do I have to give the…
0
votes
0 answers

How do I convert a location's local time to UTC?

Given a location (lat, lng) and a date/time local to that location, how do I convert the date/time to UTC? I don't have the UTC offset or time zone of the location. All of the time zone APIs I've looked at require a UTC timestamp but all I have is a…
Tyson
  • 1