Skip to content

Commit 27b347c

Browse files
authored
docs: better documentation.
1 parent 4d02ea0 commit 27b347c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,15 @@ implementation("org.cardanofoundation:cf-cardano-conversions-java:1.0.0")
4040
```java
4141
var converters = ClasspathConversionsFactory.createConverters(NetworkType.MAINNET);
4242

43-
var epochStartTime = converters.epoch().epochToUTCTime(445, EpochOffset.START);
44-
var lastAlonzoAbsoluteSlot = converters.epoch().epochToAbsoluteSlot(364, EpochOffset.END);
43+
var epochStartTime = converters.epoch().beginningOfEpochToUTCTime(445);
4544
var utcTime = converters.slot().slotToTime(109090938L);
4645
var epochNo = converters.time().utcTimeToEpochNo(LocalDateTime.of(2023, 11, 22, 9, 48, 58));
46+
var lastAlonzoAbsoluteSlot = converters.epoch().endingOfEpochToAbsoluteSlot(364);
4747

4848
System.out.println(epochStartTime); // LocalDateTime.of(2023, 10, 27, 21, 44, 51)
49-
System.out.println(lastAlonzoAbsoluteSlot); // 72316799L
5049
System.out.println(utcTime); // LocalDateTime.of(2023, 11, 22, 12, 47, 9)
5150
System.out.println(epochNo); // 450
51+
System.out.println(lastAlonzoAbsoluteSlot); // 72316799L
5252
```
5353

5454
## Additional Docs

0 commit comments

Comments
 (0)