Skip to content

Commit c5153bb

Browse files
authored
Update README.md
1 parent ac6cca1 commit c5153bb

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

README.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ In a Discrete Simulation, a Time Warp would require to know, at what value of 't
1616

1717
#Example of use
1818

19+
```java
1920
//Use hours as time unit
2021
LaborTimeCalculatorFactory cf = LaborTimeCalculatorFactory.getInstance(TimeUnit.HOUR);
2122

@@ -31,21 +32,16 @@ c.addDailyNonLaborableInterval(WeekDays.FRI, cf.createDailyTimeInterval(12, 24))
3132
c.addDailyNonLaborableInterval(WeekDays.SAT, cf.createDailyTimeInterval(0, 24));
3233
c.addDailyNonLaborableInterval(WeekDays.SUN, cf.createDailyTimeInterval(0, 24));
3334

34-
//jornada laboral: viernes de 8 a 12 ?nicamente.
35-
//104 = Viernes 8:00am
36-
//273 = Viernes de la siguiente semana, 9:00am
37-
//441 = Viernes, de la tercera semana, 9:00am
38-
3935
//if the job is assigned at friday, at 8:00am (104'th hour of the week),
4036
//when will the employee finish a 5-hour task?
4137
int timeToJump=cf.getCalculator().moveTimeLaboralHours(c, 104, 5));
38+
```
4239

4340

4441

4542

46-
47-
Héctor Fabio Cadavid Rengifo
43+
Héctor Fabio Cadavid Rengifo - 2013
4844
Escuela Colombiana de Ingeniería
4945

5046

51-
hector.cadavid@escuelaing.edu.co
47+
hector.cadavid@escuelaing.edu.co

0 commit comments

Comments
 (0)