class_docstr: Custom Timestamp class with convenient methods.
class_docstr_tok: ["Custom","Timestamp","class","with","convenient","methods","."]
docstr: Initializes the object with the current date/time.
docstr_tok: ["Initializes","the","object","with","the","current","date\/time","."]
code: def __init__(self) -> None:
      """Initializes the object with the current date/time."""
      self._seconds_since_epoch = time.time()
  
      # Convert seconds since epoch to struct_time
      self._time_obj = time.localtime(self._seconds_since_epoch)
  
      # Ensure that each field has a fixed number of letters, so needed for representations w/o delimiters
      self.year = str(self._time_obj.tm_year)
      self.month = (
          str(self._time_obj.tm_mon)
          if len(str(self._time_obj.tm_mon)) == 2
          else f"0{str(self._time_obj.tm_mon)}"
      )
      self.day = (
          str(self._time_obj.tm_mday)
          if len(str(self._time_obj.tm_mday)) == 2
          else f"0{str(self._time_obj.tm_mday)}"
      )
  
      self.hour = (
          str(self._time_obj.tm_hour)
          if len(str(self._time_obj.tm_hour)) == 2
          else f"0{str(self._time_obj.tm_hour)}"
      )
      self.min = (
          str(self._time_obj.tm_min)
          if len(str(self._time_obj.tm_min)) == 2
          else f"0{str(self._time_obj.tm_min)}"
      )
      self.sec = (
          str(self._time_obj.tm_sec)
          if len(str(self._time_obj.tm_sec)) == 2
          else f"0{str(self._time_obj.tm_sec)}"
      )
  
file_path: lazycluster/src/lazycluster/utils.py
imports: import logging
  import os
  import time
label_desc: Use image node_id 1 to create a new Timestamp object from inherited base classes: object with example: obj = Timestamp()