当前位置: 首页 > news >正文

搜索引擎优化教程搜索引擎优化的基本内容

搜索引擎优化教程,搜索引擎优化的基本内容,做一个b2c网站怎样做,微信电商平台文章目录 相关文献常量:当前日期、时间戳前一天日期、后一天日期获取日期中的年、季度、月、周、日、小时、分、秒等时间戳转换时间戳 to 日期日期 to 时间戳 日期之间月、天数差 作者:小猪快跑 基础数学&计算数学,从事优化领域5年&#…

文章目录

    • 相关文献
    • 常量:当前日期、时间戳
    • 前一天日期、后一天日期
    • 获取日期中的年、季度、月、周、日、小时、分、秒等
    • 时间戳转换
      • 时间戳 to 日期
      • 日期 to 时间戳
    • 日期之间月、天数差

作者:小猪快跑

基础数学&计算数学,从事优化领域5年+,主要研究方向:MIP求解器、整数规划、随机规划、智能优化算法。

如有错误,欢迎指正。如有更好的算法,也欢迎交流!!!——@小猪快跑

相关文献

  • LanguageManual UDF - Apache Hive - Apache Software Foundation

常量:当前日期、时间戳

返回类型名称样例描述
datecurrent_datecurrent_date = 2024-01-01返回查询评估开始时的当前日期(从 Hive 1.2.0 开始)。同一查询中的所有current_date调用都返回相同的值。
timestampcurrent_timestampcurrent_timestamp = 2024-01-01 00:00:00返回查询评估开始时的当前时间戳(从 Hive 1.2.0 开始)。同一查询中的所有current_date调用都返回相同的值。

前一天日期、后一天日期

返回类型名称样例
pre 2.1.0: string 2.1.0 on: datedate_add(date/timestamp/string startdate, tinyint/smallint/int days)date_add(‘2008-12-31’, 1) = 2009-01-01
pre 2.1.0: string 2.1.0 on: datedate_sub(date/timestamp/string startdate, tinyint/smallint/int days)date_sub(‘2008-12-31’, 1) = 2008-12-30
date_sub(current_date, 1) -- 昨天
date_add(current_date, 1) -- 明天

获取日期中的年、季度、月、周、日、小时、分、秒等

返回类型名称样例描述
intyear(string date)year("1970-01-01") = 1970
year("1970-01-01 00:00:00") = 1970
intquarter(date/timestamp/string)quarter('2015-04-08') = 2季度
intmonth(string date)month("1970-11-01 00:00:00") = 11
month("1970-11-01") = 11
intweekofyear(string date)weekofyear("1970-11-01 00:00:00") = 44
weekofyear("1970-11-01") = 44
intday(string date) dayofmonth(date)day("1970-11-01 00:00:00") = 1
day("1970-11-01") = 1
inthour(string date)hour('2009-07-30 12:58:59') = 12小时
hour('12:58:59') = 12
intminute(string date)
intsecond(string date)
stringlast_day(string date)last_day('2015-01-14') = 2015-01-31当月最后一天
stringnext_day(string start_date, string day_of_week)next_day('2015-01-14', 'TU') = 2015-01-20给定日期后最近的星期几

时间戳转换

时间戳 to 日期

返回类型名称样例描述
stringfrom_unixtime(bigint unixtime[, string pattern])from_unixtime(0)=1970-01-01 00:00:00(1970-01-01 00:00:00 UTC)之后多少秒的时间,注意不同时区结果不同

日期 to 时间戳

返回类型名称样例描述
bigintunix_timestamp(string date)unix_timestamp(‘2009-03-20 11:30:01’) = 1237573801(1970-01-01 00:00:00 UTC)之后多少秒,注意不同时区结果不同
bigintunix_timestamp(string date, string pattern)unix_timestamp(‘2009-03-20’, ‘yyyy-MM-dd’) = 1237532400(1970-01-01 00:00:00 UTC)之后多少秒,注意不同时区结果不同 https://docs.oracle.com/javase/8/docs/api/java/text/SimpleDateFormat.html

日期之间月、天数差

返回类型名称样例描述
doublemonths_between(date1, date2)months_between(‘1997-02-28 10:30:00’, ‘1996-10-30’) = 3.94959677返回日期 date1 和 date2 之间的月数(从 Hive 1.2.0 开始)。如果 date1 晚于 date2,则结果为正数。如果 date1 早于 date2,则结果为负数。 date1 和 date2 类型:timestamp | ‘yyyy-MM-dd’ | ‘yyyy-MM-dd HH:mm:ss’
intdatediff(string enddate, string startdate)datediff(‘2009-03-01’, ‘2009-02-27’) = 2
http://www.hkea.cn/news/845747/

相关文章:

  • 网络宣传推广策划范文seo如何优化排名
  • 网站 建设 原则新闻今天的最新新闻
  • 服装网站首页设计主要推广手段免费
  • 网站建设公司做销售好不好?seo搜索引擎优化实训总结
  • 江西威乐建设集团有限公司企业网站长春关键词优化公司
  • 深圳网站建设lxhd英文关键词seo
  • 在线购物商城网站百度移动端排名软件
  • 太原网站的公司友情链接的英文
  • 网站是用什么做的吗百度q3财报2022
  • 深圳福田网站建设公司如何做谷歌seo推广
  • 西安有做网站的吗北京网站设计公司
  • 哪家专门做特卖网站平台连接
  • 衢州网站推广最近发生的重大新闻
  • 网页设计的网站配色方案seo基础培训机构
  • 维护网站是什么工作淄博网站制作
  • 做电影下载网站成本淘宝关键词排名
  • 企业h5网站建设百度推广电话是多少
  • 中国保密在线网站培训系统软文怎么做
  • 山西住房城乡建设部网站整合网络营销是什么
  • 做美图网站有哪些东西吗个人博客seo
  • 南昌专业做网站公司竞价托管怎么做
  • 网站产品展示怎么做微信小程序建站
  • dw做网站的流程客户引流的最快方法是什么
  • 做网站app优惠活动的交换链接营销成功案例
  • 企业公示信息查询系统山西上海百度推广优化公司
  • 上海网站排名优化价格武汉百度快照优化排名
  • 做网站小程序如何做广告宣传与推广
  • 网站建设背景朝阳百度新闻网页
  • 专门做拼团的网站西安网站开发
  • 怎么看网站开发语言太原seo推广