前往Shuct.Net首页

Shudepb PB反编译专家长时间以来,为业内同类软件事实上的唯一选择.细节,彰显专业.态度,决定品质.

关于PowerBuilder的搜索

pb里面时间相减的问题,不知道有没这个函数? - CSDN论坛 - CSDN.NET --> 首页 论坛帮助 论坛牛人 论坛地图 CSDN > CSDN论坛 > PowerBuilder > 基础类 管理菜单 置顶 推荐 锁定 移动 编辑 删除 帖子加分 帖子高亮 结帖 发帖 回复 a5174 pb里面时间相减的问题,不知道有没这个函数? [问题点数:0分] 不显示删除回复 显示所有回复 显示星级回复 显示得分回复 只显示楼主 收藏 a5174 a5174 等级: 结帖率:100% 楼主 发表于: 2004-11-24 14:36:56 就是日期之间相减得出天数,最近为这个蛮苦恼! 那里有代码可以给我看看就好了! 分享到: 更多 对我有用[0] 丢个板砖[0] 引用 | 举报 | 编辑 删除 管理 回复次数:6 lzp_lrp lzp_lrp 等级: 结帖率:98.98% 2295 #1 得分:0 回复于: 2004-11-24 14:38:23 Description Determines the number of days one date occurs after another. Syntax DaysAfter ( date1, date2 ) Argument Description date1 A date value that is the start date of the interval being measured date2 A date value that is the end date of the interval Return value Long. Returns a long whose value is the number of days date2 occurs after date1. If date2 occurs before date1, DaysAfter returns a negative number. If any argument's value is NULL, DaysAfter returns NULL. 对我有用[0] 丢个板砖[0] 引用 | 举报 | 编辑 删除 管理 lzp_lrp lzp_lrp 等级: 结帖率:98.98% 2295 #2 得分:0 回复于: 2004-11-24 14:41:02 DaysAfter即可实现你的要求 messagebox('', DaysAfter(2004-10-11, 2004-10-22)) 返回值为11天 对我有用[0] 丢个板砖[0] 引用 | 举报 | 编辑 删除 管理 mnsiii mnsiii 等级: 结帖率:96.67% #3 得分:0 回复于: 2004-11-24 14:56:46 楼上的回答得很完美。我没什么说得了 对我有用[0] 丢个板砖[0] 引用 | 举报 | 编辑 删除 管理 tw829 tw829 等级: 结帖率:100% #4 得分:0 回复于: 2004-11-24 14:59:35 up :) 对我有用[0] 丢个板砖[0] 引用 | 举报 | 编辑 删除 管理 progrose progrose 等级: 结帖率:100% #5 得分:0 回复于: 2004-11-24 20:50:33 另加 时间差的计算函数 Description Determines the number of seconds one time occurs after another. Syntax SecondsAfter ( time1, time2 ) Argument Description time1 A time value that is the start time of the interval being measured time2 A time value that is the end time of the interval Return value Long. Returns the number of seconds time2 occurs after time1. If time2 occurs before time1, SecondsAfter returns a negative number. If any argument's value is NULL, SecondsAfter returns NULL. 对我有用[0] 丢个板砖[0] 引用 | 举报 | 编辑 删除 管理 a5174 a5174 等级: 结帖率:100% #6 得分:0 回复于: 2005-01-07 10:44:55 谢谢各位,我的程序写完了,呵呵! 对我有用[0] 丢个板砖[0] 引用 | 举报 | 编辑 删除 管理 管理菜单 置顶 推荐 锁定 移动 编辑 删除 帖子加分 帖子高亮 结帖 发帖 回复 写出你眼中的IE11 赢取新年好礼! 勇敢写出你的爱 赢莫文蔚签名大礼 2014年4月微软MVP申请开始了! 陈勇- 敏捷开发现状及发展之路 CSDN高校俱乐部 高校全新改版邀你来学习和挑战 本帖子已过去太久远了,不再提供回复功能。 核心技术类目 全部主题 Java VPN Android iOS ERP IE10 Eclipse CRM JavaScript Ubuntu NFC WAP jQuery 数据库 BI HTML5 Spring Apache Hadoop .NET API HTML SDK IIS Fedora XML LBS Unity Splashtop UML components Windows Mobile Rails QEMU KDE Cassandra CloudStack FTC coremail OPhone CouchBase 云计算 iOS6 Rackspace [关闭] [关闭]