找回密码
 注册
搜索
[新手上路]批处理新手入门导读[视频教程]批处理基础视频教程[视频教程]VBS基础视频教程[批处理精品]批处理版照片整理器
[批处理精品]纯批处理备份&还原驱动[批处理精品]CMD命令50条不能说的秘密[在线下载]第三方命令行工具[在线帮助]VBScript / JScript 在线参考
查看: 12331|回复: 1

中文版VBS帮助手册把DateDiff的interval选项翻译错了?

[复制链接]
发表于 2009-2-24 13:43:21 | 显示全部楼层 |阅读模式
查看了我能找到的几本中文版VBS帮助手册电子书,全都把DateDiff函数的interval选项翻译错了,如下,很明显把月和分钟搞颠倒了:

设置描述
yyyy
q季度
n
y一年的日数
d
w一周的日数
ww
h小时
m分钟
s


后来在一本英文版电子书上终于找到正确的描述:

"yyyy" returns the year.
"q" returns the quarter of the year.
"m" returns the month.
"y" returns the Julian date, which is the number of days that have elapsed since the beginning of the year.
"d" returns the day as a number.
"w" returns the weekday, such as "Monday."
"ww" returns the week of the year.
"h" returns the hour.
"n" returns the minute. Don't confuse this with "m," which actually returns the month.
"s" returns the second.
这一点也可以在微软官网得到印证http://msdn.microsoft.com/zh-cn/library/xhtyw595(en-us,VS.85).aspx

问题:
这么多中文版电子书全都出错,是以讹传讹的结果?或者有啥历史典故?我初学VBS,不了解内情。
发表于 2009-2-24 18:21:16 | 显示全部楼层
是微软的错。script56.chm的中文版是微软自己出,里面有很多错误。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|批处理之家 ( 渝ICP备10000708号 )

GMT+8, 2026-3-17 05:39 , Processed in 0.018171 second(s), 8 queries , File On.

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表