File tree Expand file tree Collapse file tree 3 files changed +48
-8
lines changed Expand file tree Collapse file tree 3 files changed +48
-8
lines changed Original file line number Diff line number Diff line change @@ -3141,6 +3141,26 @@ const EasyCoder_Core = {
3141
3141
numeric : true ,
3142
3142
content : year
3143
3143
} ;
3144
+ case `month` :
3145
+ var month = new Date ( ) . getMonth ( ) ;
3146
+ if ( value . timestamp ) {
3147
+ month = new Date ( program . getValue ( value . timestamp ) * 1000 ) . getMonth ( ) ;
3148
+ }
3149
+ return {
3150
+ type : `constant` ,
3151
+ numeric : true ,
3152
+ content : month
3153
+ } ;
3154
+ case `day` :
3155
+ var day = new Date ( ) . getDay ( ) ;
3156
+ if ( value . timestamp ) {
3157
+ day = new Date ( program . getValue ( value . timestamp ) * 1000 ) . getDay ( ) ;
3158
+ }
3159
+ return {
3160
+ type : `constant` ,
3161
+ numeric : true ,
3162
+ content : day
3163
+ } ;
3144
3164
case `hour` :
3145
3165
var hour = new Date ( ) . getHours ( ) ;
3146
3166
if ( value . timestamp ) {
Original file line number Diff line number Diff line change @@ -3141,6 +3141,26 @@ const EasyCoder_Core = {
3141
3141
numeric : true ,
3142
3142
content : year
3143
3143
} ;
3144
+ case `month` :
3145
+ var month = new Date ( ) . getMonth ( ) ;
3146
+ if ( value . timestamp ) {
3147
+ month = new Date ( program . getValue ( value . timestamp ) * 1000 ) . getMonth ( ) ;
3148
+ }
3149
+ return {
3150
+ type : `constant` ,
3151
+ numeric : true ,
3152
+ content : month
3153
+ } ;
3154
+ case `day` :
3155
+ var day = new Date ( ) . getDay ( ) ;
3156
+ if ( value . timestamp ) {
3157
+ day = new Date ( program . getValue ( value . timestamp ) * 1000 ) . getDay ( ) ;
3158
+ }
3159
+ return {
3160
+ type : `constant` ,
3161
+ numeric : true ,
3162
+ content : day
3163
+ } ;
3144
3164
case `hour` :
3145
3165
var hour = new Date ( ) . getHours ( ) ;
3146
3166
if ( value . timestamp ) {
You can’t perform that action at this time.
0 commit comments