问题标签 [timestamp-with-timezone]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
java - 之后 DateTimeZone.convertLocalToUTC 时区仍显示本地
我使用 DateTimeZone.convertLocalToUTC 将本地时间转换为 UTC。时间已正确更改,但转换后,时区信息仍显示原始本地时区。请参考下面的示例代码
输出: 2013 年10 月 16 日星期三 12:58:19 IST
请注意粗体值,我希望它是UTC。如果我遗漏了什么,请告诉我。
ruby-on-rails - 每当我运行某种数据库操作(IE update_attributes、save 等)时,时间戳都是 UTC
当我运行时:
返回以下内容:
我希望时区是 EST,所以我认为这是正确的。问题是,每当我运行某种数据库操作(IE update_attributes、save 等)时,时间戳都采用 UTC 格式,如下所示:
我开始实施几个后台作业,我必须了解 Postgres 所在的时区。
- Postgres 在 EST 还是 UST?
- 如果它在 UST,我如何将其转换为 EST,这样做是否危险?
- 我将允许用户从选择菜单中输入时间戳 - 菜单应该列出 UTC 时间还是 EST 时间?
java - Android:Timestamp is not displaying device time
Hi I need to display the timestamp but i didn't get the proper output here is my coding can you check my code and correct my mistakes.My code displays only UTC time not device time.
Please check this I need a timestamp like this: image link
php - 我可以在本地时区显示日期,而在 UTC 中保存日期吗?
我想在本地时区显示日期,但我已经在 UTC 中保存了日期,有任何可以使用 php 在本地时区显示它。
php - 使用php中的时区偏移将GMT时间转换为本地时间
我需要根据当前时区显示用户的活动日期。我的方法——
- 从 javascript 获取时区偏移量并将其存储到用户的配置文件表中。
- 当用户登录时,获取时区偏移量。
- 当前日期与时区偏移正常工作-
$offsetDiff = $_SESSION['TimeZone']*60;
$UserDateTime = time() + $offsetDiff;
$currentDate = date('Ymd',$UserDateTime);
- 今天以外的Dateo无法正常工作-
$offsetDiff = $_SESSION['TimeZone']*60;
$UserDateTime = '2014-02-10 08:58:00'; + $偏移量;
$monthUser = date('Ymd',$UserDateTime);
谁能告诉我如何根据时区偏移显示正确的日期?
oracle - 如何在时间戳中添加或减去时区偏移
我正在编写一个程序,从数据库中获取时区偏移量,我的要求是使用时区偏移量来操作本地时间以获取 UTC 时间。
例如,
任何人都可以帮助我为此提供适当的功能。
oracle11g - 从时区转换为时间戳时无法识别日期格式
下面的陈述有什么问题。我收到错误
date format not recognized
select to_timestamp_tz( to_char(to_date(sysdate-1,'dd/mon/yyyy') ,'dd/mon/yyyy hh:mi:ss -05:30'),'dd/mon/yyyy hh:mi:ss TZH:TZM') from dual
请帮我。
postgresql - 使用时区更改列日期
简短的问题!我有一个带有日期的列(带有时区的时间戳),它看起来像 fe:"1993-11-22 12:00:00+01"
我想更改此列的内容,以便最后得到:“1993-11-22”
这怎么能很容易做到呢?
谢谢!!
grails - 在 gsp 或 groovy 中将 1Hour 添加到 java.sql.timeStamp
我将 new Date() 转换为 GMT。现在我需要在 GMT 时间上增加 1 小时。该类是 java.sql.timeStamp。如何将 1 小时添加到 grails 中的 nowGMT 变量。我的项目中安装了幻数插件。
谢谢!
oracle - where 子句中春季时间变化(DST)期间的异常
我有一个表,其列的数据类型为“TIMESTAMP(6) WITH LOCAL TIME ZONE”
问题:对于下面的查询,我得到异常,说时区不存在。
在春季时间变化的一小时窗口期间发生异常。我该如何克服呢?