错误、漏洞、问题 - 页 1566

 
Artyom Trishkin:
yyyy - 年的四位数。
mm - 两个月的数字。
dd - 两天的标志。
hh - 两位数的小时。
mm - 两位数的分钟。

但mi是一个标志为分钟,一个标志为什么?我以为这是一个周期指数。
所以请不要编造缩短时间格式的标准。没有必要混淆...

让我们记住我开始 这个话题的地方。重点不是改变格式,而是MQL4文档中的TimeToString()TimeToStr() 应该被纠正(如下图),仅此而已。


 
Alexey Kozitsyn:
开发人员,请修复收藏品的显示!你看不到那颗星:)
我们做到了,我们很快就会修复它。
 
Maxim Khrolenko:
MQL4。TimeToString()TimeToStr()。在第二个参数的参数中,写着 "TIME_MINUTES得到的结果是 "hh:mm","TIME_SECONDS得到的结果是 "hh:mm:ss"。应更正为 "hh:mi"和 "hh:mi:ss"。
"你是个讨厌鬼,亲爱的" (c) 修复它。
 
Rashid Umarov:
"你真是个讨厌鬼,亲爱的。" (c) 修复它。
在任何情况下都不要修复它!这是不正确的。时间格式被设置为 "yyyy.MM.dd hh:mm:ss"。MM大为月,mm(小)为分,ss为秒。通常情况下,大MM会被忽略,而用小MM代替,因为上下文表明它是一个月。
 
Vasiliy Sokolov:
在任何情况下都不要纠正它。这是不正确的。时间格式被设置为 "yyyy.MM.dd hh:mm:ss"。MM大为月,mm(小)为分,ss为秒。MM通常被忽略,用一个小的MM代替,因为上下文告诉代码要使用月份。
hh24?
 
Vasiliy Sokolov:
在任何情况下都不要纠正它。这是不正确的。时间格式被设置为 "yyyy.MM.dd hh:mm:ss"。MM大为月,mm(小)为分,ss为秒。通常情况下,大MM会被忽略,而用小MM代替,因为上下文表明它是一个月。
太晚了,斯拉瓦让我
 
Slawa:
hh24?

hh->12;HH->24。

斯拉瓦
hh24?
这里有一个很好的规范:https://msdn.microsoft.com/en-us/library/8kb3ddd4(v=vs.110).aspx
Custom Date and Time Format Strings
Custom Date and Time Format Strings
  • docs.microsoft.com
A date and time format string defines the text representation of a DateTime or DateTimeOffset value that results from a formatting operation . It can also define the representation of a date and time value that is required in a parsing operation in order to successfully convert the string to a date and time. A custom format string consists of...
 
Rashid Umarov:
"你真是个讨厌鬼,亲爱的"(c)我们会解决的。
好的,如果我还发现什么(我会的),我会写信给serviced
 
Maxim Khrolenko:
好吧,如果我发现其他的东西(我会的),我会写信给serviced
不要去servicedesk。你最好到别的地方去写。
 
Vasiliy Sokolov:
不要去servicedesk。你应该在别的地方写。
这个地方有什么问题 吗?