About 50 results
Open links in new tab
  1. Does Python's time.time() return a timestamp in UTC?

    Feb 4, 2016 · Technically, time.time() doesn't specify, and practically, at least in CPython, it returns a timestamp in whatever format is used by the underlying standard C library's time …

  2. datetime - How to get UTC time in Python? - Stack Overflow

    Apr 11, 2013 · For Python 3, use datetime.now(timezone.utc) to get a timezone-aware datetime, and use .timestamp() to convert it to a timestamp. from datetime import datetime, timezone …

  3. What is the difference between UTC and GMT? - Stack Overflow

    Feb 23, 2018 · Yes, time can be captured in UTC alone. Storing time in UTC and using UTC for transmitting date-time information is generally considered good practice. I suppose it’s up to …

  4. How do I get a UTC Timestamp in JavaScript? - Stack Overflow

    Mar 18, 2012 · This is an old question that came up in my feed today, and it's full of misinformation. Timestamp is always in UTC. new Date().toString() will show you current time …

  5. Understanding specific UTC time format YYYY-MM …

    Jun 1, 2016 · Assume a program running in (British Standard Time)BST generates a date time value for current time in UTC (YYYY-MM-DDTHH:MM:SS.SSSZ) format. Also assume current …

  6. Convert UTC date time to local date time - Stack Overflow

    Learn how to convert UTC date time to local date time with examples and solutions provided by the Stack Overflow community.

  7. c - Getting UTC time as time_t - Stack Overflow

    By definition the C time() function returns a time_t epoch time in UTC. So the code commented "//get the local time in time_t" is really getting UTC already, and the comment is incorrect.

  8. How to initialize a JavaScript Date to a particular time zone

    I have date time in a particular timezone as a string and I want to convert this to the local time. But, I don't know how to set the timezone in the Date object.

  9. Using current time in UTC as default value in PostgreSQL

    May 17, 2013 · I have a column of the TIMESTAMP WITHOUT TIME ZONE type and would like to have that default to the current time in UTC. Getting the current time in UTC is easy: …

  10. C# DateTime to UTC Time without changing the time

    Jun 1, 2011 · How would I convert a preexisting datetime to UTC time without changing the actual time. Example: DateTime dateTime = GetSomeDateTime(); // dateTime here is 3pm …