| | |
| | | LibCal_SubscriberEventTable table, |
| | | LibCal_SubscriberEventRow row, |
| | | DateTime starttime, |
| | | DateTime endtime |
| | | DateTime endtime, |
| | | String desc |
| | | ) |
| | | { |
| | | TextBody: |
| | |
| | | column := table.LibCal_SubscriberEventColumn( relnew, Name := time.Format( 'M/D/Y' ), Period := time.Date() ); |
| | | } |
| | | |
| | | duration := startTime.StartOfNextMonth() - startTime; |
| | | if( startTime.StartOfNextMonth() > endtime ){ |
| | | duration := endtime - startTime; |
| | | cell := column.LibCal_SubscriberEventCell( relnew, Value := [String]duration.HoursAsReal() |
| | | , Start := startTime.Format( 'M/D/Y H:m' ) |
| | | , End := endtime.Format( 'M/D/Y H:m' ) |
| | | , Description := desc ); |
| | | row.LibCal_SubscriberEventCell( relinsert, cell ); |
| | | }else{ |
| | | duration := startTime.StartOfNextMonth() - startTime; |
| | | cell := column.LibCal_SubscriberEventCell( relnew, Value := [String]duration.HoursAsReal() |
| | | , Start := startTime.Format( 'M/D/Y H:m' ) |
| | | , End := startTime.StartOfNextMonth().Format( 'M/D/Y H:m' ) |
| | | , Description := desc ); |
| | | row.LibCal_SubscriberEventCell( relinsert, cell ); |
| | | } |
| | | // info( startTime, column.Name(), duration.AsQUILL(), duration.HoursAsReal() ); |
| | | cell := column.LibCal_SubscriberEventCell( relnew, Value := [String]duration.HoursAsReal() ); |
| | | row.LibCal_SubscriberEventCell( relinsert, cell ); |
| | | } |
| | | *] |
| | | } |