nanshan 即时通讯 函数获得当前的UTC时间 GetSystemTime

本文介绍了一种通过GetSystemTime函数获取当前UTC时间的方法,并解释了UTC时间的概念及其与本地时间的区别。

地址:nanshan 即时通讯 函数获得当前的UTC时间 GetSystemTime

nanshan 即时通讯软件爱好者在发即时通讯的时候,需要获取系统时间,这里给大家分享我的方法。
GetSystemTime函数获得当前的UTC时间,GetLocalTime获得当前的本地时间

UTC是协调世界时(Universal Time Coordinated)英文缩写,是由国际无线电咨询委员会规定和推荐,并由国际时间局(BIH)负责保持的以秒为基础的时间标度。UTC相当于本初子午线(即经度0度)上的平均太阳时,过去曾用格林威治平均时(GMT)来表示.北京时间比UTC时间早8小时,以1999年1月1日0000UTC为例,UTC时间是零点,北京时间为1999年1月1日早上8点整。
整个地球分为二十四时区,每个时区都有自己的本地时间。在国际无线电通信场合,为了统一起见,使用一个统一的时间,称为通用协调时(UTC, Universal Time Coordinated)。UTC与格林尼治平均时(GMT, Greenwich Mean Time)一样,都与英国伦敦的本地时相同。


### SQL: WITH polygon AS (SELECT ST_MakePolygon(ST_GeomFromText(?, 4326)) AS geom) SELECT bus_address, business_scope, cancel_date, city, community, declared_capital_atm, district, dom_code, ent_name, ent_org_code, ent_status, ent_type, ent_type_code, est_date, etl_create_time, etl_data_source, etl_update_time, filing_date, grid, id_num, industry, industry_category, is_delete, safe_cast_to_numeric(lat) AS lat, legal_person, safe_cast_to_numeric(lon) AS lon, operation_period, province, register_address, registered_capital_amt, registered_no, registration_institution, revoke_date, street, uni_credit_code, ent_id FROM ads_ent_base_info_nanshan CROSS JOIN polygon WHERE uni_credit_code LIKE CONCAT(?,'%') AND ST_Within(ST_MakePoint(safe_cast_to_numeric(lon), safe_cast_to_numeric(lat))::geography,polygon.geom::geography) AND ST_Intersects(ST_MakeEnvelope( ST_XMin(polygon.geom), ST_YMin(polygon.geom), ST_XMax(polygon.geom), ST_YMax(polygon.geom), 4326),ST_MakePoint(safe_cast_to_numeric(lon), safe_cast_to_numeric(lat ))) ORDER BY ent_id DESC LIMIT ? OFFSET ? ### Cause: org.postgresql.util.PSQLException: 错误: 函数 st_within(geography, geography) 不存在 Hint: 没有匹配指定名称和参数类型的函数. 您也许需要增加明确的类型转换. Position: 1071 ; bad SQL grammar []] with root cause org.postgresql.util.PSQLException: 错误: 函数 st_within(geography, geography) 不存在 Hint: 没有匹配指定名称和参数类型的函数. 您也许需要增加明确的类型转换. Position: 1071
最新发布
09-06
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值