unreal.DaylightSavings¶
- class unreal.DaylightSavings(outer: Object | None = None, name: Name | str = 'None')¶
Bases:
BlueprintFunctionLibraryUtilities related to Daylight Savings
C++ Source:
Plugin: CelestialVault
Module: CelestialVault
File: DaylightSavings.h
- 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:
date_time (DateTime)
mode (DaylightSavingsMode)
latitude (double)
start_day (DaylightSavingsRule)
end_day (DaylightSavingsRule)
switch_hour (int32)
- Return type:
- 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)
- 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
- classmethod to_date(daylight_savings_rule, year) DateTime¶
Return the Date defined by a specific Daylight Saving Rule
- Parameters:
daylight_savings_rule (DaylightSavingsRule)
year (int32)
- Return type:
- 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: