Enumerationmigueldeicaza.swiftgodot 0.45.0SwiftGodot
Month
Time.swift:30enum Month
Cases
case january
The month of January, represented numerically as
01
.case february
The month of February, represented numerically as
02
.case march
The month of March, represented numerically as
03
.case april
The month of April, represented numerically as
04
.case may
The month of May, represented numerically as
05
.case june
The month of June, represented numerically as
06
.case july
The month of July, represented numerically as
07
.case august
The month of August, represented numerically as
08
.case september
The month of September, represented numerically as
09
.case october
The month of October, represented numerically as
10
.case november
The month of November, represented numerically as
11
.case december
The month of December, represented numerically as
12
.
Other members in extension
View members
Hide members
This section is hidden by default because it contains too many (24) members.
Types
Type members
static func getDateDictFromSystem(utc: Bool
) -> GDictionary Returns the current date as a dictionary of keys:
year
,month
,day
, andweekday
.static func getDateDictFromUnixTime(unixTimeVal: Int
) -> GDictionary Converts the given Unix timestamp to a dictionary of keys:
year
,month
,day
, andweekday
.static func getDateStringFromSystem(utc: Bool
) -> String Returns the current date as an ISO 8601 date string (YYYY-MM-DD).
static func getDateStringFromUnixTime(unixTimeVal: Int
) -> String Converts the given Unix timestamp to an ISO 8601 date string (YYYY-MM-DD).
static func getDatetimeDictFromDatetimeString(datetime: String, weekday: Bool
) -> GDictionary Converts the given ISO 8601 date and time string (YYYY-MM-DDTHH:MM:SS) to a dictionary of keys:
year
,month
,day
, [code skip-lint]weekday,
hour,
minute, and
second`.static func getDatetimeDictFromSystem(utc: Bool
) -> GDictionary Returns the current date as a dictionary of keys:
year
,month
,day
,weekday
,hour
,minute
,second
, anddst
(Daylight Savings Time).static func getDatetimeDictFromUnixTime(unixTimeVal: Int
) -> GDictionary Converts the given Unix timestamp to a dictionary of keys:
year
,month
,day
,weekday
,hour
,minute
, andsecond
.static func getDatetimeStringFromDatetimeDict(datetime: GDictionary, useSpace: Bool
) -> String Converts the given dictionary of keys to an ISO 8601 date and time string (YYYY-MM-DDTHH:MM:SS).
static func getDatetimeStringFromSystem(utc: Bool, useSpace: Bool
) -> String Returns the current date and time as an ISO 8601 date and time string (YYYY-MM-DDTHH:MM:SS).
static func getDatetimeStringFromUnixTime(unixTimeVal: Int, useSpace: Bool
) -> String Converts the given Unix timestamp to an ISO 8601 date and time string (YYYY-MM-DDTHH:MM:SS).
static func getOffsetStringFromOffsetMinutes(Int
) -> String Converts the given timezone offset in minutes to a timezone offset string. For example, -480 returns “-08:00”, 345 returns “+05:45”, and 0 returns “+00:00”.
static func getTicksMsec(
) -> UInt Returns the amount of time passed in milliseconds since the engine started.
static func getTicksUsec(
) -> UInt Returns the amount of time passed in microseconds since the engine started.
static func getTimeDictFromSystem(utc: Bool
) -> GDictionary Returns the current time as a dictionary of keys:
hour
,minute
, andsecond
.static func getTimeDictFromUnixTime(unixTimeVal: Int
) -> GDictionary Converts the given time to a dictionary of keys:
hour
,minute
, andsecond
.static func getTimeStringFromSystem(utc: Bool
) -> String Returns the current time as an ISO 8601 time string (HH:MM:SS).
static func getTimeStringFromUnixTime(unixTimeVal: Int
) -> String Converts the given Unix timestamp to an ISO 8601 time string (HH:MM:SS).
static func getTimeZoneFromSystem(
) -> GDictionary Returns the current time zone as a dictionary of keys:
bias
andname
.static func getUnixTimeFromDatetimeDict(datetime: GDictionary
) -> Int Converts a dictionary of time values to a Unix timestamp.
static func getUnixTimeFromDatetimeString(datetime: String
) -> Int Converts the given ISO 8601 date and/or time string to a Unix timestamp. The string can contain a date only, a time only, or both.
static func getUnixTimeFromSystem(
) -> Double Returns the current Unix timestamp in seconds based on the system time in UTC. This method is implemented by the operating system and always returns the time in UTC.
class var godotClassName: StringName
Citizens in SwiftGodot
Conformances
protocol CaseIterable
A type that provides a collection of all of its values.
protocol CustomDebugStringConvertible
A type with a customized textual representation suitable for debugging purposes.
protocol Equatable
A type that can be compared for value equality.
protocol Hashable
A type that can be hashed into a
Hasher
to produce an integer hash value.protocol RawRepresentable<RawValue>
A type that can be converted to and from an associated raw value.
Type members
Instance members
var debugDescription: String
A textual representation of this instance, suitable for debugging
Type features
static func != (lhs: Self, rhs: Self
) -> Bool Returns a Boolean value indicating whether two values are not equal.