unreal.DaylightSavings

class unreal.DaylightSavings(outer: Object | None = None, name: Name | str = 'None')

Bases: BlueprintFunctionLibrary

Utilities related to Daylight Savings

C++ Source:

  • Plugin: CelestialVault

  • Module: CelestialVault

  • File: DaylightSavings.h

classmethod get_week_day(date) WeekDay

Return the Day for a specific Date

Parameters:

date (DateTime)

Return type:

WeekDay

classmethod is_daylight_savings(date_time, mode, latitude, start_day, end_day, switch_hour) bool

Check if a specific date is inside a Daylight saving range defined by its rules.

Parameters:
Return type:

bool

classmethod last_weekday_in_month(year, month, weekday) int32

Return the Date of the Last Weekday in a Month for a specific Year and Month (1..31)

Parameters:
Return type:

int32

classmethod nth_weekday_in_month(year, month, weekday, nth) int32

Return the nth Weekday in a Month for a specific Year and Month - Returns (1..31), or 0 if the nth weekday does not exist

Parameters:
Return type:

int32

classmethod to_date(daylight_savings_rule, year) DateTime

Return the Date defined by a specific Daylight Saving Rule

Parameters:
Return type:

DateTime

classmethod to_string(daylight_savings_rule) str

Return the Date String defined by a specific Daylight Saving Rule

Parameters:

daylight_savings_rule (DaylightSavingsRule)

Return type:

str