source: src/main/java/com/example/cookbook/model/Naracka.java@ cab1b7d

Last change on this file since cab1b7d was cab1b7d, checked in by Blazho <aleksandar.blazhevski@…>, 5 months ago

Added naracki page with view of all

  • Property mode set to 100644
File size: 780 bytes
Line 
1package com.example.cookbook.model;
2
3import java.time.LocalDateTime;
4import java.time.format.DateTimeFormatter;
5
6public class Naracka {
7
8 private LocalDateTime vreme;
9
10 private String telefon;
11
12 public Naracka() {
13 }
14
15 public LocalDateTime getVreme() {
16 return vreme;
17 }
18
19 public void setVreme(LocalDateTime vreme) {
20 this.vreme = vreme;
21 }
22
23 public String getTelefon() {
24 return telefon;
25 }
26
27 public void setTelefon(String telefon) {
28 this.telefon = telefon;
29 }
30
31 public Naracka(LocalDateTime vreme, String telefon) {
32 this.vreme = vreme;
33 this.telefon = telefon;
34 }
35 public String getDataFormatirana(){
36 return vreme.format(DateTimeFormatter.ofPattern("yyyy-MMM-dd HH:mm"));
37 }
38
39}
Note: See TracBrowser for help on using the repository browser.