Created
September 3, 2020 18:14
-
-
Save carlynorama/a50386c66b845a849fcfdcd388016995 to your computer and use it in GitHub Desktop.
What day is it shell script, swift
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
#!/usr/bin/env swift | |
import Foundation | |
var dayString:String { | |
let dateFormatter = DateFormatter() | |
dateFormatter.setLocalizedDateFormatFromTemplate("EEEE") | |
return (dateFormatter.string(from: Date())) | |
} | |
print(dayString) | |
#https://www.raywenderlich.com/5027-scripting-in-swift-writing-a-script |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment