class_docstr: Namespace for string related expressions.
class_docstr_tok: ["Namespace","for","string","related","expressions","."]
docstr: Convert a String column into a Time column.
  
  Parameters
  ----------
  format
      Format to use for conversion. Refer to the `chrono crate documentation
      <https://docs.rs/chrono/latest/chrono/format/strftime/index.html>`_
      for the full specification. Example: `"%H:%M:%S"`.
      If set to None (default), the format is inferred from the data.
  strict
      Raise an error if any conversion fails.
  cache
      Use a cache of unique, converted times to apply the conversion.
  
  Examples
  --------
  >>> s = pl.Series(["01:00", "02:00", "03:00"])
  >>> s.str.to_time("%H:%M")
  shape: (3,)
  Series: '' [time]
  [
          01:00:00
          02:00:00
          03:00:00
  ]
docstr_tok: ["Convert","a","String","column","into","a","Time","column",".","Parameters","--","--","--","--","--","format","Format","to","use","for","conversion",".","Refer","to","the","`","chrono","crate","documentation","<","https",":","\/\/docs.rs\/chrono\/latest\/chrono\/format\/strftime\/index.html",">","`","_","for","the","full","specification",".","Example",":","`","``","%","H",":","%","M",":","%","S","''","`",".","If","set","to","None","(","default",")",",","the","format","is","inferred","from","the","data",".","strict","Raise","an","error","if","any","conversion","fails",".","cache","Use","a","cache","of","unique",",","converted","times","to","apply","the","conversion",".","Examples","--","--","--","--",">",">",">","s","=","pl.Series","(","[","``","01:00","''",",","``","02:00","''",",","``","03:00","''","]",")",">",">",">","s.str.to_time","(","``","%","H",":","%","M","''",")","shape",":","(","3",",",")","Series",":","``","[","time","]","[","01:00:00","02:00:00","03:00:00","]"]
code: def to_time(
      self,
      format: str | None = None,
      *,
      strict: bool = True,
      cache: bool = True,
  ) -> Expr:
      """
      Convert a String column into a Time column.
  
      Parameters
      ----------
      format
          Format to use for conversion. Refer to the `chrono crate documentation
          <https://docs.rs/chrono/latest/chrono/format/strftime/index.html>`_
          for the full specification. Example: `"%H:%M:%S"`.
          If set to None (default), the format is inferred from the data.
      strict
          Raise an error if any conversion fails.
      cache
          Use a cache of unique, converted times to apply the conversion.
  
      Examples
      --------
      >>> s = pl.Series(["01:00", "02:00", "03:00"])
      >>> s.str.to_time("%H:%M")
      shape: (3,)
      Series: '' [time]
      [
              01:00:00
              02:00:00
              03:00:00
      ]
  
      """
      _validate_format_argument(format)
      return wrap_expr(self._pyexpr.str_to_time(format, strict, cache))
  
imports: from __future__ import annotations
  import warnings
  from typing import TYPE_CHECKING
  import polars._reexport
  from polars import functions
  from polars.datatypes import Date, Datetime, Int32, Time, py_type_to_dtype
  from polars.exceptions import ChronoFormatWarning
  from polars.utils._parse_expr_input import parse_as_expression
  from polars.utils._wrap import wrap_expr
  from polars.utils.deprecation import deprecate_renamed_function, deprecate_renamed_parameter, rename_use_earliest_to_ambiguous
  from polars.utils.various import find_stacklevel
label_desc: Use image node_id 4 for calling the ExprStringNameSpace obj's underlying member method code with example usage: obj.to_time(format) and returns: wrap_expr