Skip to main content
Ctrl+K

caput v26.2.1

  • User Guide
  • Installation
  • API Reference
  • GitHub
  • User Guide
  • Installation
  • API Reference
  • GitHub

Section Navigation

  • caput.algorithms
  • caput.astro
    • caput.astro.constants
    • caput.astro.coordinates
    • caput.astro.observer
    • caput.astro.skyfield
    • caput.astro.time
      • datetime_to_timestr
      • datetime_to_unix
      • ensure_unix
      • era_to_unix
      • leap_seconds_between
      • naive_datetime_to_utc
      • time_of_day
      • timestr_to_datetime
      • unix_to_datetime
      • unix_to_era
  • caput.config
  • caput.containers
  • caput.memdata
  • caput.mpiarray
  • caput.pipeline
  • caput.util
  • caput
  • caput.astro
  • caput.astro.time
  • timestr_to_datetime

timestr_to_datetime#

caput.astro.time.timestr_to_datetime(time_str)[source]#

Converts date “YYYYMMDDTHHMMSS*” to a datetime.

Parameters:
time_strstr | array_like

Formated date and time.

Returns:
dtdatetime | array_like
Formated date and time(s).

See also

datetime_to_timestr()

previous

time_of_day

next

unix_to_datetime

On this page
  • caput.astro.time.timestr_to_datetime()

© Copyright 2013-2026 Liam Gray, Kiyoshi Masui and J. Richard Shaw.

Created using Sphinx 8.2.3.

Built with the PyData Sphinx Theme 0.16.1.