About 31,600 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 · from datetime import datetime, timezone datetime.now(timezone.utc) datetime.now(timezone.utc).timestamp() * 1000 # POSIX timestamp in milliseconds For your …

  3. javascript - How to convert a Date to UTC? - Stack Overflow

    The resulting utc object isn't really a UTC date, but a local date shifted to match the UTC time (see comments). However, in practice it does the job. Update: The above answer from 2012 …

  4. 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 …

  5. How can I get the current time (now) in UTC? - Stack Overflow

    from datetime import timezone utc_datetime = local_datetime.astimezone().astimezone(timezone.utc).replace(tzinfo=None) Given a naive …

  6. Is there a difference between the UTC and Etc/UTC time zones?

    In the PHP documentation, list of supported time zones, UTC is listed twice: UTC Etc/UTC Is there any conceptual difference between those two, or are they just synonyms?

  7. Oracle SQL: converting timestamp to UTC - Stack Overflow

    Mar 27, 2014 · The from_tz() is tying the date to the time zone, EST/EDT in this example; the 'at time zone 'UTC'` is converting the time to UTC. As long as you know which time zone the date …

  8. Creating a DateTime object with a specific UTC DateTime in …

    Get-Date converts the given UTC time to local time and stores it as a datetime object with Kind set to Local. It does store the correct physical point in time, but it is a local time and will be …

  9. Easy way to convert a struct tm (expressed in UTC) to time_t type

    Nov 12, 2008 · How do I do the above? There is mktime function but that treats the input as expressed in local time but how do i perform the conversion if my input tm variable happens to …

  10. Excel - How to convert UTC date time - Stack Overflow

    Apr 6, 2016 · I would like to use this string as a date time in excel 2016-04-06T18:05:32.6550717+03:00 How can it be converted?