Comments (2)
E
is the same thing as eee
, so you can do:
let today = Clock.system.today()
let abbreviatedWeekdayName = today.format(weekday: .abbreviatedName) // ex: "Sat"
let fullWeekdayName = today.format(weekday: .fullName) // ex: "Saturday"
let narrowWeekdayName = today.format(weekday: .narrowName) // ex: "S"
let shortWeekdayName = today.format(weekday: .shortName) // ex: "Sa"
from time.
That's correct however the format functions force you to pass a format for the era, year, month etc. You can't just use the weekday format.
from time.
Related Issues (20)
- According to the docs, the calendar in `Region.autoupdatingCurrent` won't autoupdate. HOT 1
- Name of my project is the same as this package HOT 1
- Slow initialisation HOT 2
- CocoaPods support
- Make Template.template public HOT 1
- How does one set the clock so that Monday is the first dayu of the week? HOT 2
- Add total unit values to TimeDifference HOT 5
- Inaccurate timing with a very fast clock HOT 1
- Better support for weeks HOT 1
- Support floating values
- Improving rounding performance
- Improve Fixed.startOfWeek performance
- Fixed.description should conditionally omit time zone
- Typo in BasicUsage
- Confirm `Locale.Weekday` conversion on ISO8601 calendars
- Make types conform to Sendable when possible
- Certain format strings don't localize correctly
- Whole differences should return integers HOT 1
- Fixed values can be missing their era
- [Request] Add ManualClock type for discrete time changes
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from time.