`
JavaFans
  • 浏览: 87354 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

convert timezone

阅读更多

For the time zone "BRAZIL" in database table TTZZ, a shift of -3 hours from the UTC reference time is entered in database table TTZR. The end of the summer time is defined in database table TTZDV as the second Sunday in March at 02:00, which in the year 2003 is March 9. With these settings in the rules, the two conversions below both result in the same local time of "01:30:00". The first conversion shows that the time is still in the summer time.

DATA: time_stamp TYPE timestamp,
dat TYPE d,
tim TYPE t,
tz TYPE ttzz-tzone,
dst TYPE c LENGTH 1.

tz = 'BRAZIL'.
time_stamp = 20030309033000.
CONVERT TIME STAMP time_stamp TIME ZONE tz
INTO DATE dat TIME tim DAYLIGHT SAVING TIME dst.
WRITE: /(10) dat, (8) tim, dst.

time_stamp = 20030309043000.
CONVERT TIME STAMP time_stamp TIME ZONE tz
INTO DATE dat TIME tim DAYLIGHT SAVING TIME dst.
WRITE: /(10) dat, (8) tim, dst.

Exceptions

Non-Catchable Exceptions

  • Cause: Inconsistent control tables for the conversion. 
分享到:
评论

相关推荐

    matlab开发-支持vector的TimeZoneConvertByerWinMayer

    matlab开发-支持vector的TimeZoneConvertByerWinMayer。带并行向量支持的Erwin-Mayer时区转换函数

    Pso2 Swiki Extra Timezone-crx插件

    语言:日本語 ...如果您有任何问题或建议,请向我的github存储库报告:https://github.com/aalexx-S/pso2swiki-timezone-convert。 至少到目前为止,这不是翻译扩展或警报扩展,所以请不要让我添加这两个功能。

    时区转换由 Erwin Mayer with vector support:Erwin Mayer's Timezone Convert function with parallelized vector support-matlab开发

    这只是 Erwin Mayer 的 nice 函数的增强版本,它允许您在时区之间进行转换,包括 DST 更改。 添加了对向量的支持。 如果您打开了许多 matlabpool,则支持并行处理。 利用Java中的日历,因此需要在计算机中安装Java...

    WinRTTimeZones:WinRT,Windows Store和Windows Phone 8应用程序的简单时区转换

    public void ConvertTime(){// Get the time zone we wantvar tz = TimeZoneService.FindSystemTimeZoneById("Central Standard Time");var dt = new DateTime(1990, 7, 1, 12, 0, 0, DateTimeKind.Utc);// This ti

    ACE_OS::mktime函数源代码

    _ERRCHECK(_get_timezone(&timezone;)); tmptm1 += timezone; /* * Convert this second count back into a time block structure. * If localtime returns NULL, return an error. */ if ( _localtime64_s...

    时区:2.7k中JavaScript的完整时区感知日期数学和格式

    ) var tz = require ( 'timezone/loaded' ) , equal = require ( 'assert' ) . equal , utc ;// Get POSIX time in UTC.utc = tz ( '2012-01-01' ) ;// Convert UTC time to local time in a localize language....

    PHP实现股票趋势图和柱形图

    基于强大的pchart类库。 <?php /* * 股票趋势图和柱形图 * @author: Skiychan * @created: 02/05/2015 */ include "libs/pData....include "libs/convert.php";...date_default_timezone_set('Asia/Shanghai')

    C语言实现时区转换函数的实例

    C语言实现时区转换函数的实例 时区转换函数 功能: 把时区1的时间转换成时区2的时间 参数: ... DATA(insert OID = 6668 ( timezone_convert PGNSP PGUID 12 1 0 0 0 f f f f t f i 3 0 1114 "1114

    Bugzilla所需Perl模块

    5: 5_DateTime-TimeZone 6: 6_DateTime-Locale 7: 7_DateTime 8: 8_AppConfig 9: 9_Template-Toolkit 10: 10_Email-Address 11: 11_Email-Simple 12: 12_Return-Value 13: 13_Email-Send 14: 14_Email-MIME-...

    API-MS-WIN一系列丢失DLL打包

    api-ms-win-core-timezone-l1-1-0.dll api-ms-win-core-util-l1-1-0.dll api-ms-win-crt-conio-l1-1-0.dll api-ms-win-crt-convert-l1-1-0.dll api-ms-win-crt-environment-l1-1-0.dll api-ms-win-crt-filesystem-l1...

    mysql时区问题

    用convert_tz转换时区,你可以用 show variables like ‘time_zone’; 得到时区,如果返回的是”system”的话,你可以用 show variables like ‘system_time_zone’; 得到结果。 您可能感兴趣的文章:...

    local-crontab:local:alarm_clock:将本地crontab转换为UTC crontab

    Convert local crontabs to UTC crontabs Positional arguments: CRONTAB A crontab in local time Optional arguments: -h, --help Show this help message and exit. -v, --version Show program's version ...

    php.ini-development

    max_input_time ; Default Value: -1 (Unlimited) ; Development Value: 60 (60 seconds) ; Production Value: 60 (60 seconds) ; output_buffering ; Default Value: Off ; Development Value: 4096 ; Production...

    Oracle9i的init.ora参数中文说明

    说明: 与 NLS_TIME_TZ_FORMAT 相似, 其中的一对值指定 TIMESTAMP 数据类型的默认值, 该类型除存储 YEAR, MONTH 和 DAY 日期值, HOUR, MINUTE 和 SECOND 时间值, 还存储 TIMEZONE_HOUR 和 TIMEZONE_MINUTE。...

    ZendFramework中文文档

    9.1.1. Always Set a Default Timezone 9.1.2. Why Use Zend_Date? 9.2. 操作理论 9.2.1. 内部(Internals) 9.3. Basic Methods 9.3.1. The current date 9.3.2. Zend_Date by Example 9.3.2.1. Ouput a Date...

    DX1.5 手机正式版

    $this->timezone_set();//设置时区,但是为何在这个方法里 没有传入8这个参数以设置我们的东八区? //加载核心函数 if(!defined(‘DISCUZ_CORE_FUNCTION’) && !@include(DISCUZ_ROOT.’./source/function/function_...

    dateutils:漂亮的命令行日期和时间实用程序; Shell中的快速日期计算和转换

    dateutils:漂亮的命令行日期和时间实用程序; Shell中的快速日期计算和转换

    VB编程资源大全(英文源码 其它)

    <END><br>91,Eurocalc.zip A Euro calculator - converts between all the Euro zone currencies according to the rules (single rate, 6 digit precision, 2 digit rounding) <END><br>92,smexec.zip This ...

    python3.6.5参考手册 chm

    PEP 495: Local Time Disambiguation PEP 529: Change Windows filesystem encoding to UTF-8 PEP 528: Change Windows console encoding to UTF-8 PEP 520: Preserving Class Attribute Definition Order PEP ...

    MySQL 5.6 Reference Manual

    Table of Contents Preface, Notes, Licenses . . . . . . . . ....1. Licenses for Third-Party Components ....1.1. FindGTest.cmake License ....1.2. LPeg Library License ....1.3. LuaFileSystem Library License ....

Global site tag (gtag.js) - Google Analytics