Delphi 时间函数介绍(国外英语资料).docVIP

  1. 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
  2. 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  3. 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
  4. 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
  5. 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们
  6. 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
  7. 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
Delphi 时间函数介绍(国外英语资料)

Delphi 时间函数介绍(国外英语资料) delphi 时间函数介绍2007 - 10 - 17: 34unit dateutils function dateof (const avalue: tdatetime): tdatetime. 描述 使用 dateof 函数用来把一个 tdatetime 类型的变量转变成一个 只带有日期的 tdatetime 类型变量. 例如. showmessage (datetimetostr (dateof (now ()))); 你得到的是 2003 / 03 / 19 而 showmessage (datetimetostr (now ()))); 得到的是 2003 / 03 / 19: 50: ●function datetimetostr (datetime): tdatetime): string; 描述 datetimetostring 函数将 tdatetime 转换成一个 类型的参数 datetime 字符串, 使用给定的全局变量 shortdateformat 的格式, 时间部分按照 给定的全局变量 longtimeformat 的格式. 其中 datetime 为零的部分将不会显示出来. 例如. shortdateformat: = yyyy mm dd. showmessage (datetimetostr (now ()))); 你将得到: 2003 03 19: 50: ●procedure datetimetostring (var): string; const format: string, datetime, tdatetime). 描述. datetimetostring 方法将tdatetime类型的参数datetime 按照由参数format提供的格式 转化成字符串, 并保存在result中. 对于format的格式类型 date time format strings, 请看 的帮助. 例如. datetimetostring), yyyy mm dd, now () 那么 result的结果为: 2003 03 19: 50: ●procedure datetimetosystemtime (datetime: tdatetime; var systemtime: tsystemtime). 描述. 有时为了调用api函数来使用系统时间, 你可以使用 datetimetosystemtime 方法, 来将一个 tdatetime 类型的时间变量转换成一个 tsystemtime 类型的 系统时间. ●function datetimetounix (const avalue: tdatetime): int64. 描述. 使用 datetimetounix 函数来将一个 型时间变量转换成一个相应的 格式 tdatetime. 的日期和时间. unix date and time values are encoded as the number of seconds that have elapsed since midnight at the start of january 1, 1970. ●function datetostr (date: tdatetime): string; 描述. 使用 datetostr 函数能得到 tdatetime 日期时间类型的日期部分.日期的转换格式依赖于 全局变量 shortdateformat. ●function dayof (const avalue: tdatetime) word. 描述. 对于给定的tdatetime类型的日期时间, 使用 dayof 函数能得到该日期是该月份的第几天. 该函数的返回数值在 之间 到 31 1 注意: dayof 函数得到的结果与 dayofthemonth 相同. 例如. showmessage (inttostr (dayof (now). 得到的是: 19 (今天是 某月19日) ●function dayofthemonth (const avalue: tdatetime) word. 与 dayof 相同. ●function dayoftheweek (const avalue: tdatetime) word. 描述. 对于给定的tdatetime类型的日期时间, 使用 dayoftheweek 函数能得到该日期是该星期的 第几天.dayoftheweek 函数的返回数值为 1 到 7 1 of them were on Monday, compared with 7 on Sunday. Note: DayOfTheWeek is the

文档评论(0)

f8r9t5c + 关注
实名认证
文档贡献者

该用户很懒,什么也没介绍

版权声明书
用户编号:8000054077000003

1亿VIP精品文档

相关文档