class_docstr: Reader VGAC data.
class_docstr_tok: ["Reader","VGAC","data","."]
docstr: Set time from attributes.
docstr_tok: ["Set","time","from","attributes","."]
code: def set_time_attrs(self, data):
      """Set time from attributes."""
      if "StartTime" in data.attrs:
          data.attrs["start_time"] = datetime.strptime(
              data.attrs["StartTime"], "%Y-%m-%dT%H:%M:%S"
          )
          data.attrs["end_time"] = datetime.strptime(
              data.attrs["EndTime"], "%Y-%m-%dT%H:%M:%S"
          )
          self._end_time = data.attrs["end_time"]
          self._start_time = data.attrs["start_time"]
  
file_path: satpy/satpy/readers/viirs_vgac_l1c_nc.py
imports: import logging
  from datetime import datetime
  import numpy
  import xarray
  from satpy.readers.file_handlers import BaseFileHandler
  from satpy.utils import get_legacy_chunk_size
label_desc: Use image node_id 5 for calling the VGACFileHandler obj's underlying member method code with example usage: obj.set_time_attrs(data) without return types