public class TimeFacade extends Object
| Modifier and Type | Method and Description |
|---|---|
LocalDate |
getBuildDate(Build build)
Return the date of a build, i.e. a
LocalDate with the same year, month and day as today. |
static TimeFacade |
getInstance() |
Temporal |
getToday()
Return today, i.e. the current date from the system clock in the default time-zone.
|
static void |
reset()
Replaces a stubbed facade with the real facade.
|
static void |
setInstance(TimeFacade stubFacade) |
public static TimeFacade getInstance()
public static void reset()
public static void setInstance(TimeFacade stubFacade)
public Temporal getToday()
Copyright © 2016–2019. All rights reserved.