Skip to main content

Utility detect probable date/time formats given a numeric input.

Project description

https://travis-ci.org/martinvw/epoch-analyzer.png?branch=master https://coveralls.io/repos/martinvw/epoch-analyzer/badge.png?branch=master

A python module to analyze numbers to determine on which epoch they might be based and in what unit they might be expressed.

Installation

  1. Install using pip:

    pip install epoch-analyzer

    Alternatively, you can download or clone this repo and call pip install -e ..

Usage in Python

Import the EpochTester from the package epoch_analyzer

from epoch_analyzer import EpochTester

If you desire you can pass a min_date and max_date which are used for reference.

Given the resulting object you can call test or convert, for either testing numbers for a probable format or (batch) converting lists of numbers to dates.

Usage EpochTester.test

You can pass one number, an iterable list of numbers or for example a counter to this method.

For each number one test conversion is performed

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

epoch-analyzer-0.2.tar.gz (7.4 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page