astrocalc.times.now

Report current time in various formats

Author

David Young

Module Contents

Classes

now

Report the current time into various formats

API

class astrocalc.times.now.now(log, settings=False)[source][source]

Bases: object

Report the current time into various formats

Key Arguments

  • log – logger

  • settings – the settings dictionary

Initialization

get_mjd()[source][source]

Get the current time as an MJD

Return

  • mjd – the current MJD as a float

Usage

… todo::

- add clutil
- remove `getCurrentMJD` from all other code
from astrocalc.times import now
mjd = now(
    log=log
).get_mjd()