class_docstr: A time-based amount of time, such as '34.5 seconds'.
class_docstr_tok: ["A","time-based","amount","of","time",",","such","as","'34.5","seconds","'","."]
code: def of_hours(hours: int):
      return Duration(
          get_gateway().jvm.java.time.Duration.ofHours(hours)
      )
  
imports: from pyflink.java_gateway import get_gateway
label_desc: Use image node_id 3 for calling the Duration obj's underlying member method code with example usage: obj.of_hours(hours) and returns: Duration