Plugin : Moment

Author:Rex.Rainbow

Download

Properties

Actions

Add

Action:Add to

  • Add to date.
    • Amount ( number ) : Amount.
    • Type ( Combo ) : Type.
      • Options : ["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"]

Action:Add # to

  • Add to date.
    • Amount ( number ) : Amount.
    • Type ( number or string ) : Type, in number(4) or string("days").

Locale

Action:Set locale

  • Set locale.
    • Locale ( string ) : Locale.

Set

Action:Current date

  • Set date to current date.

Action:Unix timestamp

  • Set date from unix timestamp.
    • Unix timestamp ( number ) : Unix timestamp.

Action:Date string

  • Set date from string.
    • Date ( string ) : Date string.
    • Format ( string ) : Date string. Set to "" to use ISO 8601 format.

Action:Clone

  • Clone date from another moment object.
    • Moment ( object ) : Moment object for cloning

Action:Set component

  • Set date component.
    • Amount ( number ) : Amount.
    • Type ( Combo ) : Type.
      • Options : ["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"]

Expressions

Date

Expression:Year

  • Get year.

Expression:Month

  • Get month (0 - 11).

Expression:Date

  • Get day number.

Expression:Day

  • Get day name.

Expression:Quarter

  • Get quarter (1,2,3,4).

Elapsed

Expression:ElapsedYears

  • Get the elapsed in years. Add 1 at 2nd parameter to get float result.
    • Previous ( number or string ) : Unix timestamp or date string of previoud date.

Expression:ElapsedMonths

  • Get the elapsed in months. Add 1 at 2nd parameter to get float result.
    • Previous ( number or string ) : Unix timestamp or date string of previoud date.

Expression:ElapsedDays

  • Get the elapsed in days. Add 1 at 2nd parameter to get float result.
    • Previous ( number or string ) : Unix timestamp or date string of previoud date.

Expression:ElapsedHours

  • Get the elapsed in hours. Add 1 at 2nd parameter to get float result.
    • Previous ( number or string ) : Unix timestamp or date string of previoud date.

Expression:ElapsedMinutes

  • Get the elapsed in minutes. Add 1 at 2nd parameter to get float result.
    • Previous ( number or string ) : Unix timestamp or date string of previoud date.

Expression:ElapsedSeconds

  • Get the elapsed in seconds. Add 1 at 2nd parameter to get float result.
    • Previous ( number or string ) : Unix timestamp or date string of previoud date.

Expression:ElapsedMilliseconds

  • Get the elapsed in milliseconds.
    • Previous ( number or string ) : Unix timestamp or date string of previoud date.

End of

Expression:EndOfYear

  • Get the unix timestamp of end year.

Expression:EndOfMonth

  • Get the unix timestamp of end month.

Expression:EndOfQuarter

  • Get the unix timestamp of end quarter.

Expression:EndOfWeek

  • Get the unix timestamp of end week.

Expression:EndOfDate

  • Get the unix timestamp of end date.

Expression:EndOfHour

  • Get the unix timestamp of end hour.

Expression:EndOfMinute

  • Get the unix timestamp of end minute.

Expression:EndOfSecond

  • Get the unix timestamp of end second.

Expression:EndOfISOWeek

  • Get the unix timestamp of end isoWeek.

Format

Expression:Format

  • Get format date string. Add 1st parameter to assign format.

Expression:ISO

  • Get ISO date string.

Locale

Expression:Locale

  • Get locale.

Month

Expression:DaysInMonth

  • Get the number of days in the current month.

Start of

Expression:StartOfYear

  • Get the unix timestamp of start year.

Expression:StartOfMonth

  • Get the unix timestamp of start month.

Expression:StartOfQuarter

  • Get the unix timestamp of start quarter.

Expression:StartOfWeek

  • Get the unix timestamp of start week.

Expression:StartOfDate

  • Get the unix timestamp of start date.

Expression:StartOfHour

  • Get the unix timestamp of start hour.

Expression:StartOfMinute

  • Get the unix timestamp of start minute.

Expression:StartOfSecond

  • Get the unix timestamp of start second.

Expression:StartOfISOWeek

  • Get the unix timestamp of start iso week.

Time

Expression:Hours

  • Get hours.

Expression:Minutes

  • Get minutes.

Expression:Seconds

  • Get seconds.

Expression:Milliseconds

  • Get milliseconds.

UnixTimestamp

Expression:UnixTimestamp

  • Get current number of milliseconds since the epoch.

Conditions

Date string

Condition:Is valid

  • Return true if data string is valid.
    • Date ( string ) : Date string.
    • Format ( string ) : Date string. Set to "" to ignore format setting.
    • Strict mode ( Combo ) : Strict mode.
      • Options : [""," strict"]

Leap Year

Condition:Is leap year

  • Return true if data is leap year .