This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) { | |
let contentView = ContentView() | |
if let windowScene = scene as? UIWindowScene { | |
let window = UIWindow(windowScene: windowScene) | |
window.rootViewController = UIHostingController(rootView: contentView) | |
self.window = window | |
window.makeKeyAndVisible() | |
} | |
if let shortcutItem = connectionOptions.shortcutItem { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from datetime import datetime | |
datetime(2020, 1, 10, 13, 2, 0) | |
# a datetime object by specifying year, month, day, hour, minute, second | |
datetime.today() | |
# a datetime object with current date and time | |
datetime.now() | |
# the same as above when tz is None | |
datetime.utcnow() | |
# the same as above, but in the UTC (Coordinated Universal Time) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class | Attributes | |
---|---|---|
date | year, month, day | |
time | hour, minute, second, microsecond, tzinfo | |
datetime | year, month, day, hour, minute, second, microsecond, tzinfo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Element Type | Element Number | count == 0 | isEmpty | |
---|---|---|---|---|
Int | 0 | 92.98 | 78.63 | |
Int | 1 | 76.66 | 79.90 | |
Int | 10 | 76.92 | 78.67 | |
Int | 100 | 76.04 | 77.78 | |
Int | 1000 | 74.46 | 78.05 | |
Int | 10000 | 78.50 | 79.11 | |
Int | 100000 | 75.58 | 78.18 | |
Int | 1000000 | 75.15 | 77.57 | |
Int | 10000000 | 76.12 | 79.11 |