bpm.BusinessCalendarServiceオブジェクト
コンポーネント情報 | |
---|---|
version | 8.0.15 |
since | 8.0.15 |
ビジネスカレンダー設定関連処理を行うクラスです。
メソッドの概要
返却値の型 | メソッド名 |
---|---|
Date | addDays (Date target , String timeZone , Number days ) 指定された日数を加算します。 |
Integer | countDays (Date from , Date to , String timeZone ) 期間内の日数を返却します。 fromとtoが同日の場合、1を返却します。 |
Integer | countHoliDays (Date from , Date to , String timeZone , String calendarId ) 期間内の休日日数を返却します。 |
Date | editClock (Date target , Integer hh , Integer mm , Integer ss , String timeZone ) 指定されたタイムゾーンにおける時刻(時分秒)を設定します。ミリ秒には0が設定されます。 |
Date | editClock (Date target , Integer hh , Integer mm , Integer ss , Integer milliSec , String timeZone ) 指定されたタイムゾーンにおける時刻(時分秒ミリ秒)を設定します。 |
Date | editClock (Date target , Integer hh , Integer mm , Integer ss , Integer milliSec , TimeZone timeZone ) 対象の日付に指定されたタイムゾーンにおける時刻(時分秒ミリ秒)を設定します。 |
Date | editClock (Date target , Integer hh , String timeZone ) 指定されたタイムゾーンにおける時刻(時)を設定します。分、秒、ミリ秒には0が設定されます。 |
Date | editClock (Date target , Integer hh , Integer mm , String timeZone ) 指定されたタイムゾーンにおける時刻(時分)を設定します。秒、ミリ秒には0が設定されます。 |
Date | excludeHoliDays (Date from , Date to , String timeZone , String calendarId ) 期間(from - to)から期間内の休日の日数分 to に営業日(休日は含まず)を加算した日付を返却します。 |
Date | getDateWithoutTime (Date target , String timeZone ) 指定されたタイムゾーンにおける時刻なし(0:00:00.000)の日付型を返却します。 |
Date | getNextBusinessDay (Date date , String timeZone , String calendarId ) 対象日付の次の営業日を返却します。 |
Boolean | isAfter (Date target , Integer hh , String timeZone ) 指定されたタイムゾーンにおいての対象日付の時刻が指定の時刻より後の時刻の場合、trueとなります。 |
Boolean | isAfter (Date target , Integer hh , Integer mm , String timeZone ) 指定されたタイムゾーンにおいての対象日付の時刻が指定の時刻より後の時刻の場合、trueとなります。 |
Boolean | isAfter (Date target , Integer hh , Integer mm , Integer ss , String timeZone ) 指定されたタイムゾーンにおいての対象日付の時刻が指定の時刻より後の時刻の場合、trueとなります。 |
Boolean | isAfter (Date target , Integer hh , Integer mm , Integer ss , Integer milliSec , String timeZone ) 指定されたタイムゾーンにおいての対象日付の時刻が指定の時刻より後の時刻の場合、trueとなります。 |
Boolean | isAfter (Date target , Integer hh , Integer mm , Integer ss , Integer milliSec , TimeZone timeZone ) 指定されたタイムゾーンにおいての対象日付の時刻が指定の時刻より後の時刻の場合、trueとなります。 |
Boolean | isBefore (Date target , Integer hh , Integer timeZone ) 指定されたタイムゾーンにおいての対象日付の時刻が指定の時刻より前の時刻の場合、trueとなります。 |
Boolean | isBefore (Date target , Integer hh , Integer mm , String timeZone ) 指定されたタイムゾーンにおいての対象日付の時刻が指定の時刻より前の時刻の場合、trueとなります。 |
Boolean | isBefore (Date target , Integer hh , Integer mm , Integer ss , String timeZone ) 指定されたタイムゾーンにおいての対象日付の時刻が指定の時刻より前の時刻の場合、trueとなります。 |
Boolean | isBefore (Date target , Integer hh , Integer mm , Integer ss , Integer milliSec , String timeZone ) 指定されたタイムゾーンにおいての対象日付の時刻が指定の時刻より前の時刻の場合、trueとなります。 |
Boolean | isBefore (Date target , Integer hh , Integer mm , Integer ss , Integer milliSec , String timeZone ) 指定されたタイムゾーンにおいての対象日付の時刻が指定の時刻より前の時刻の場合、trueとなります。 |
Boolean | isHoliDay (Date target , String timeZone , String calendarId ) 休日判定を行います。 |
Boolean | isHoliDay (Date target , TimeZone timeZone , String calendarId ) 休日判定を行います。 |
メソッドの詳細
Date addDays (Date target , String timeZone , Number days )
指定された日数を加算します。
パラメータ
返却値
|
Integer countDays (Date from , Date to , String timeZone )
期間内の日数を返却します。 fromとtoが同日の場合、1を返却します。
パラメータ
返却値
|
Integer countHoliDays (Date from , Date to , String timeZone , String calendarId )
期間内の休日日数を返却します。
パラメータ
返却値
|
Date editClock (Date target , Integer hh , Integer mm , Integer ss , String timeZone )
指定されたタイムゾーンにおける時刻(時分秒)を設定します。ミリ秒には0が設定されます。
In case of spring forward '2023-03-12 hh:mm:ss' set to '02:00:00' return '2023-03-12 03:00:00:-0400' (TZ:America/New_York) In case of fall back '2023-11-05 hh:mm:ss' set to '01:00:00' return '2023-11-05 01:00:00:-0400' (TZ:America/New_York)
パラメータ
返却値
|
Date editClock (Date target , Integer hh , Integer mm , Integer ss , Integer milliSec , String timeZone )
指定されたタイムゾーンにおける時刻(時分秒ミリ秒)を設定します。
In case of spring forward '2023-03-12 hh:mm:ss' set to '02:00:00' return '2023-03-12 03:00:00:-0400' (TZ:America/New_York) In case of fall back '2023-11-05 hh:mm:ss' set to '01:00:00' return '2023-11-05 01:00:00:-0400' (TZ:America/New_York)
パラメータ
返却値
|
Date editClock (Date target , Integer hh , Integer mm , Integer ss , Integer milliSec , TimeZone timeZone )
対象の日付に指定されたタイムゾーンにおける時刻(時分秒ミリ秒)を設定します。
In case of spring forward '2023-03-12 hh:mm:ss' set to '02:00:00' return '2023-03-12 03:00:00:-0400' (TZ:America/New_York) In case of fall back '2023-11-05 hh:mm:ss' set to '01:00:00' return '2023-11-05 01:00:00:-0400' (TZ:America/New_York)
パラメータ
返却値
|
Date editClock (Date target , Integer hh , String timeZone )
指定されたタイムゾーンにおける時刻(時)を設定します。分、秒、ミリ秒には0が設定されます。
In case of spring forward '2023-03-12 hh:mm:ss' set to '02:00:00' return '2023-03-12 03:00:00:-0400' (TZ:America/New_York) In case of fall back '2023-11-05 hh:mm:ss' set to '01:00:00' return '2023-11-05 01:00:00:-0400' (TZ:America/New_York)
パラメータ
返却値
|
Date editClock (Date target , Integer hh , Integer mm , String timeZone )
指定されたタイムゾーンにおける時刻(時分)を設定します。秒、ミリ秒には0が設定されます。
In case of spring forward '2023-03-12 hh:mm:ss' set to '02:00:00' return '2023-03-12 03:00:00:-0400' (TZ:America/New_York) In case of fall back '2023-11-05 hh:mm:ss' set to '01:00:00' return '2023-11-05 01:00:00:-0400' (TZ:America/New_York)
パラメータ
返却値
|
Date excludeHoliDays (Date from , Date to , String timeZone , String calendarId )
期間(from - to)から期間内の休日の日数分 to に営業日(休日は含まず)を加算した日付を返却します。
パラメータ
返却値
|
Date getDateWithoutTime (Date target , String timeZone )
指定されたタイムゾーンにおける時刻なし(0:00:00.000)の日付型を返却します。
ex) タイムゾーン:America/New_Yorkの場合、2023-06-13T00:00:00.000 EDT(2023-06-13T04:00:00.000 UTC)
パラメータ
返却値
|
Date getNextBusinessDay (Date date , String timeZone , String calendarId )
対象日付の次の営業日を返却します。
パラメータ
返却値
|
Boolean isAfter (Date target , Integer hh , String timeZone )
指定されたタイムゾーンにおいての対象日付の時刻が指定の時刻より後の時刻の場合、trueとなります。
パラメータ
返却値
|
Boolean isAfter (Date target , Integer hh , Integer mm , String timeZone )
指定されたタイムゾーンにおいての対象日付の時刻が指定の時刻より後の時刻の場合、trueとなります。
パラメータ
返却値
|
Boolean isAfter (Date target , Integer hh , Integer mm , Integer ss , String timeZone )
指定されたタイムゾーンにおいての対象日付の時刻が指定の時刻より後の時刻の場合、trueとなります。
パラメータ
返却値
|
Boolean isAfter (Date target , Integer hh , Integer mm , Integer ss , Integer milliSec , String timeZone )
指定されたタイムゾーンにおいての対象日付の時刻が指定の時刻より後の時刻の場合、trueとなります。
パラメータ
返却値
|
Boolean isAfter (Date target , Integer hh , Integer mm , Integer ss , Integer milliSec , TimeZone timeZone )
指定されたタイムゾーンにおいての対象日付の時刻が指定の時刻より後の時刻の場合、trueとなります。
パラメータ
返却値
|
Boolean isBefore (Date target , Integer hh , Integer timeZone )
指定されたタイムゾーンにおいての対象日付の時刻が指定の時刻より前の時刻の場合、trueとなります。
パラメータ
返却値
|
Boolean isBefore (Date target , Integer hh , Integer mm , String timeZone )
指定されたタイムゾーンにおいての対象日付の時刻が指定の時刻より前の時刻の場合、trueとなります。
パラメータ
返却値
|
Boolean isBefore (Date target , Integer hh , Integer mm , Integer ss , String timeZone )
指定されたタイムゾーンにおいての対象日付の時刻が指定の時刻より前の時刻の場合、trueとなります。
パラメータ
返却値
|
Boolean isBefore (Date target , Integer hh , Integer mm , Integer ss , Integer milliSec , String timeZone )
指定されたタイムゾーンにおいての対象日付の時刻が指定の時刻より前の時刻の場合、trueとなります。
パラメータ
返却値
|
Boolean isBefore (Date target , Integer hh , Integer mm , Integer ss , Integer milliSec , String timeZone )
指定されたタイムゾーンにおいての対象日付の時刻が指定の時刻より前の時刻の場合、trueとなります。
パラメータ
返却値
|
Boolean isHoliDay (Date target , String timeZone , String calendarId )
休日判定を行います。
パラメータ
返却値
|
Boolean isHoliDay (Date target , TimeZone timeZone , String calendarId )
休日判定を行います。
パラメータ
返却値
|