Commit c48615a0 authored by 王志伟's avatar 王志伟

chang date

parent 95a22b0c
...@@ -61,7 +61,7 @@ object testt { ...@@ -61,7 +61,7 @@ object testt {
//设置时间格式 //设置时间格式
val time = cal.getTime val time = cal.getTime
//将时间格式套用在获取的时间戳上 //将时间格式套用在获取的时间戳上
val newtime: String = new SimpleDateFormat("yyyy-MM-dd").format(time) val newtime: String = new SimpleDateFormat("yyyyMMdd").format(time)
println(newtime) println(newtime)
val get_data_dura = sc.sql( val get_data_dura = sc.sql(
s""" s"""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment