mirror of
https://github.com/corda/corda.git
synced 2025-05-29 13:44:25 +00:00
Removed IRS specific code to new repo.
This commit is contained in:
parent
a66d6b974e
commit
2727d56b4a
@ -1,19 +0,0 @@
|
|||||||
package com.r3corda.core.utilities
|
|
||||||
|
|
||||||
import java.time.*
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This whole file exists as short cuts to get demos working. In reality we'd have static data and/or rules engine
|
|
||||||
* defining things like this. It currently resides in the core module because it needs to be visible to the IRS
|
|
||||||
* contract.
|
|
||||||
*/
|
|
||||||
// We at some future point may implement more than just this constant announcement window and thus use the params.
|
|
||||||
@Suppress("UNUSED_PARAMETER")
|
|
||||||
fun suggestInterestRateAnnouncementTimeWindow(index: String, source: String, date: LocalDate): TimeWindow {
|
|
||||||
// TODO: we would ordinarily convert clock to same time zone as the index/source would announce in
|
|
||||||
// and suggest an announcement time for the interest rate
|
|
||||||
// Here we apply a blanket announcement time of 11:45 London irrespective of source or index
|
|
||||||
val time = LocalTime.of(11, 45)
|
|
||||||
val zoneId = ZoneId.of("Europe/London")
|
|
||||||
return TimeWindow(ZonedDateTime.of(date, time, zoneId).toInstant(), Duration.ofHours(24))
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user