Apache Pig提供以下日期和时间函数 -
创新互联公司服务项目包括平武网站建设、平武网站制作、平武网页制作以及平武网络营销策划等。多年来,我们专注于互联网行业,利用自身积累的技术优势、行业经验、深度合作伙伴关系等,向广大中小型企业、政府机构等提供互联网行业的解决方案,平武网站推广取得了明显的社会效益与经济效益。目前,我们服务的客户以成都为中心已经辐射到平武省份的部分城市,未来相信会继续扩大服务区域并继续获得客户的支持与信任!
S.N. | 函数 & 描述 |
---|---|
1 | ToDate(milliseconds) 此函数根据给定的参数返回日期时间对象。此函数的另一个替代方法是ToDate(iosstring),ToDate(userstring,format),ToDate(userstring,format,timezone) |
2 | CurrentTime() 返回当前时间的日期时间对象。 |
3 | GetDay(datetime) 从日期时间对象返回一个月中的某一天。 |
4 | GetHour(datetime) 从日期时间对象返回一天中的小时。 |
5 | GetMilliSecond(datetime) 从日期时间对象返回秒中的毫秒。 |
6 | GetMinute(datetime) 从日期时间对象返回一小时中的分钟。 |
7 | GetMonth(datetime) 从日期时间对象返回一年中的月份。 |
8 | GetSecond(datetime) 从日期时间对象返回一分钟的秒。 |
9 | GetWeek(datetime) 从日期时间对象返回一年中的周。 |
10 | GetWeekYear(datetime) 从日期时间对象返回周年。 |
11 | GetYear(datetime) 从日期时间对象返回年份。 |
12 | AddDuration(datetime, duration) 返回日期时间对象的结果以及持续时间对象。 |
13 | SubtractDuration(datetime, duration) 从Date-Time对象中减去Duration对象并返回结果。 |
14 | DaysBetween(datetime1, datetime2) 返回两个日期时间对象之间的天数。 |
15 | HoursBetween(datetime1, datetime2) 返回两个日期时间对象之间的小时数。 |
16 | MilliSecondsBetween(datetime1, datetime2) 返回两个日期时间对象之间的毫秒数。 |
17 | MinutesBetween(datetime1, datetime2) 返回两个日期时间对象之间的分钟数。 |
18 | MonthsBetween(datetime1, datetime2) 返回两个日期时间对象之间的月数。 |
19 | SecondsBetween(datetime1, datetime2) 返回两个日期时间对象之间的秒数。 |
20 | WeeksBetween(datetime1, datetime2) 返回两个日期时间对象之间的周数。 |
21 | YearsBetween(datetime1, datetime2) 返回两个日期时间对象之间的年数。 |
分享标题:创新互联ApachePig教程:ApachePig日期时间函数
文章来源:http://www.shufengxianlan.com/qtweb/news38/20838.html
网站建设、网络推广公司-创新互联,是专注品牌与效果的网站制作,网络营销seo公司;服务项目有等
声明:本网站发布的内容(图片、视频和文字)以用户投稿、用户转载内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。电话:028-86922220;邮箱:631063699@qq.com。内容未经允许不得转载,或转载时需注明来源: 创新互联