title: How to get the current batch timestamp in Spark streaming
body: <p>How to get the current batch timestamp (DStream) in Spark streaming?</p>
  
  <p>I have a spark streaming application where the input data will under go many transformations.</p>
  
  <p>I need the current timestamp during the execution to validate the timestamp in input data.</p>
  
  <p>If I compare with the current time then timestamp might differ from each RDD transformation execution.</p>
  
  <p>Is there any way to get the timestamp, when the particular Spark streaming micro batch has started or which micro batch interval it belongs?</p>