Common package

Submodules

LOGS_solutions.GenerateStatistics.Common.CommonHandler module

LOGS_solutions.GenerateStatistics.Common.DateHandler module

class LOGS_solutions.GenerateStatistics.Common.DateHandler.DateHandler[source]

Bases: object

This class provides methods to handle dates.

The class provides methods to check if a given date is in the correct format and to check if a given date is in a given range. Additionally, the class provides a method to convert seconds to days, hours, minutes and seconds.

static check_date(date)[source]

Checks if the given date is a datetime object.

Parameters:

date (datetime) – check if the given date is a datetime object.

Return type:

datetime

Returns:

datetime object

static check_date_range(current_date, begin_date, end_date)[source]

Checks if the current date is in the range between begin_date and end_date.

Parameters:

current_date (datetime) – Date which is to be checked

Return type:

bool

Returns:

Boolean if the current_date is in the range

static seconds_to_dhms(seconds)[source]

LOGS_solutions.GenerateStatistics.Common.OutputGenerator module

Module contents