now (class)

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

Bases: object

Report the current time into various formats

Key Arguments

  • log – logger

  • settings – the settings dictionary

Methods

get_mjd()

Get the current time as an MJD

get_mjd()[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()