Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2021 06:16 AM
- import java.util.TimeZone
spark.conf.set("spark.sql.session.timeZone", "Asia/Calcutta")
TimeZone.setDefault(TimeZone.getTimeZone("Asia/Calcutta"))
Scala
import java.time
val s: String = time.LocalDateTime.now().toString
println(s)
sql
%sql
select current_timestamp