| | |
| | | TextBody: |
| | | [* |
| | | // 甄兰鸽 May-29-2024 (created) |
| | | for( startTime := starttime; startTime < endtime; startTime := startTime.StartOfMonth() ){ |
| | | time := startTime.Format( 'M/D/Y' ); |
| | | for( startTime := starttime; startTime < endtime; startTime := startTime.StartOfNextMonth() ){ |
| | | time := startTime; |
| | | if( starttime = startTime ){ |
| | | time := startTime.StartOfMonth().Format( 'M/D/Y' ); |
| | | time := startTime.StartOfMonth(); |
| | | } |
| | | column := selectobject( table, LibCal_SubscriberEventColumn, column, column.Name() = time ); |
| | | column := selectobject( table, LibCal_SubscriberEventColumn, column, column.Name() = time.Format( 'M/D/Y' ) ); |
| | | if( isnull( column ) ){ |
| | | column := table.LibCal_SubscriberEventColumn( relnew, Name := time ); |
| | | column := table.LibCal_SubscriberEventColumn( relnew, Name := time.Format( 'M/D/Y' ), Period := time.Date() ); |
| | | } |
| | | |
| | | duration := startTime.StartOfNextMonth() - startTime; |