使用
to_unix_timestamp('20220213','yyyyMMdd')
在linux shell中执行:spark-sql -e "select to_unix_timestamp('20220213','yyyyMMdd')"
结果:
1644681600
使用
to_unix_timestamp('20220213','yyyyMMdd')
在linux shell中执行:spark-sql -e "select to_unix_timestamp('20220213','yyyyMMdd')"
结果:
1644681600