-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Weeks is missing on "mini-minute-now" option #40
Comments
mini-minute-now
option
Oh, actually, you're right: export default {
steps: [
{ formatAs: 'second' },
{ formatAs: 'minute' },
{ formatAs: 'hour' },
{ formatAs: 'day' },
{ formatAs: 'week' },
{ formatAs: 'month' },
{ formatAs: 'year' }
],
labels: [
// "mini" labels are only defined for a few languages.
'mini',
// "short-time" labels are only defined for a few languages.
'short-time',
// "narrow" and "short" labels are defined for all languages.
// "narrow" labels can sometimes be weird (like "+5d."),
// but "short" labels have the " ago" part, so "narrow" seem
// more appropriate.
// "short" labels would have been more appropriate if they
// didn't have the " ago" part, hence the "short-time" above.
'narrow',
// Since "narrow" labels are always present, "short" element
// of this array can be removed.
'short'
]
} |
From the documentation, it seems that the
mini
options should be the same as theround
option except shorter (i.e. seconds = s), however it doesn't seem that the days every refactor into weeks for themini-minute-now
option. I tried all of the mini options and I never got it to work (6days to 1week) as I thought it should. Should the mini options have the week options available or am I mistaken?The text was updated successfully, but these errors were encountered: