utc

Error starting up a network. Nodes in different VM - Failed connecting to orderer0.tec.com:7050 , error: context deadline exceeded

匿名 (未验证) 提交于 2019-12-03 02:38:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm starting up a network, which will have 3 peers and an orderer. I have 4 different Virtual Machines, one for each node. I follow the Getting Started manual for Hyperledger Fabric. I execute all the steps without any problem. However, after executing the following command peer channel join -b channeldemo.block , I start getting some erros. It seems to me that the previous command is generated well, because I get the following logs: 2017-06-27 08:26:23.247 UTC [channelCmd] executeJoin -> INFO 00a Peer joined the channel! 2017-06-27 08:26:23

Should event times specified in UTC while generating ICS files, to avoid issues with myriad calendaring applications

匿名 (未验证) 提交于 2019-12-03 02:38:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Handling timezones is tricky enough to say the least. And when it gets into generating ics files for scheduling meetings/events, it gets messier. There have ben plenty of queries out on the internet, asking why the "meeting time is off by one hour after importing an ics file into outlook/google calendar, microsoft exchange server" etc. Though i have researched quite a bit on this, including following the answers/suggestions on those trails, haven't quite figured out "the right method" of handling event time and what is the best practice

PHP strtotime returning false for UTC time

匿名 (未验证) 提交于 2019-12-03 02:38:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: My colleague and I are obtaining different results from some unit tests that use strtotime. The discrepancy originates in this line: $value = strtotime('2050-05-01T20:10:29.410Z'); on my machine, this result returns the following: int(2535048629) whereas my colleague's version returns false We are both using PHP version 5.4.14 and PHPUnit 3.724. Has anyone got any idea what is causing this discrepancy, and is there a more robust approach? 回答1: This is because he is on 32-bit and you are on 64-bit machine. See what echo PHP_INT_MAX; returns

Different dates formats in zoo

匿名 (未验证) 提交于 2019-12-03 02:38:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I am finding differences in behavior between two environments running R 2.12.1. In the first one zoo behaves as expected. > library ( zoo ) > x . date <- as . Date ( paste ( 2003 , 2 , c ( 1 , 3 , 7 , 9 , 14 ), sep = "-" )) > x <- zoo ( rnorm ( 5 ), x . date ) > index ( x ) [ 1 ] "2003-02-01" "2003-02-03" "2003-02-07" "2003-02-09" "2003-02-14" > as . Date ( index ( x )) [ 1 ] "2003-02-01" "2003-02-03" "2003-02-07" "2003-02-09" "2003-02-14" > sessionInfo () R version 2.12 . 1 ( 2010 - 12 - 16 ) Platform : x86_64 - unknown - linux -

Convert date string to UTC time with PHP

匿名 (未验证) 提交于 2019-12-03 02:36:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I have the following date string $date = "Sat Apr 30 2011 18:47:47 GMT+0900 (Tokyo)" I want to convert it to UTC time $timestamp_UNIX = strtotime ( $date ); echo date ( "Y-m-d\TH:i:s\Z" , $timestamp_UNIX ); Why do I got 2011 - 04 - 30T11 : 47 : 47Z and not 2011 - 04 - 30T09 : 47 : 47Z 回答1: The problem is that you code does not automatically echo UTC. It echos the timestamp in whatever your default timezone is set to. This is done via date_default_timezone_set() at runtime or via the configuration setting date.timezone in your php

Create a local date from a UTC date string in Moment.js

匿名 (未验证) 提交于 2019-12-03 02:34:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: Given a UTC date string (formatted: YYYYMMDDHHmmss) I'd like to create a date with the local timezone using Moment.js. I have tried the following: var utcDateStr = '20140101120000' ; var localDate = moment . utc ( utcDateStr , 'YYYYMMDDHHmmss' ); //actual: true //desired: false console . log ( localDate . _isUTC ) //actual: "Wed Jan 01 2014 12:00:00 GMT+0000" //desired: "Wed Jan 01 2014 07:00:00 GMT-0500" console . log ( localDate . toString ()) How do I create a date that is formatted in the local time zone by default when I call

with_tz with a vector of timezones

匿名 (未验证) 提交于 2019-12-03 02:31:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a dataframe like so: library(dplyr) data <- data_frame( timestamp_utc = c('2015-11-18 03:55:04', '2015-11-18 03:55:08', '2015-11-18 03:55:10'), local_tz = c('America/New_York', 'America/Los_Angeles', 'America/Indiana/Indianapolis') ) I need to create a new variable that converts the UTC timestamp to the local time as defined in the local_tz column. However, both format and with_tz (from lubridate ) expect only one timezone, not a vector of timezones. I'm looking for something like this: mutate(data, timestamp_local = with_tz(timestamp

solaR timestamp for radiation on a tilted surface

匿名 (未验证) 提交于 2019-12-03 02:31:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to use the R package solaR to calculate irradiance on a tilted plane given measured irradiance on the horizontal plane. I can get the code to work, but the final output timestamp does not make sense. Data for this code can be found here . It is one day's worth of measured irradiance (global horizontal -- ghz, direct normal -- dir, diffuse horizontal -- dhz, and outdoor temp ta) for Austin, TX. The timestamp is local 'CST6CDT' time. The data is for a clear day, so that maximum value of global horizontal (ghz) should roughly

How to convert UTC datetime column to local time in datagridview?

匿名 (未验证) 提交于 2019-12-03 02:31:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am doing work on a new logging database that I have decided to use UTC datetime to store all datetime values since our company spans timezones and multiple sources and timezones are logging events. That is working great. However the problem that I cannot get my head around is formatting the datetimes in my datagridview for my user application. Our applications use mostly LINQ to SQL to manipulate our data from generic SQL CRUD calls, so I am hoping I can mask/format the DGV to get the conversion or some LINQ function rather than having to

Parse dates in format dmy together with dmY using parse_date_time

匿名 (未验证) 提交于 2019-12-03 02:30:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a vector of character representation of dates, where formats mostly are dmY (e.g. 27-09-2013), dmy (e.g. 27-09-13), and occasionally some b or B months. Thus, parse_date_time in package lubridate that "allows the user to specify several format-orders to handle heterogeneous date-time character representations" could be a very useful function for me. However, it seems that parse_date_time has problem parsing dmy dates when they occur together with dmY dates. When parsing dmy alone, or dmy together with some other formats relevant to me