Skip to content

Commit

Permalink
Added DateTime.to_http_header getter
Browse files Browse the repository at this point in the history
  • Loading branch information
gkjpettet committed Sep 20, 2018
1 parent 05dec34 commit af113d6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Roo/Lookup.xojo_code
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ Protected Module Lookup
dateTimeObjGetters.Value("sunday?") = True
dateTimeObjGetters.Value("thursday?") = True
dateTimeObjGetters.Value("time") = True
dateTimeObjGetters.Value("to_http_header") = True
dateTimeObjGetters.Value("to_text") = True
dateTimeObjGetters.Value("today?") = True
dateTimeObjGetters.Value("tomorrow?") = True
Expand Down
2 changes: 2 additions & 0 deletions src/Roo/Objects/DateTimeObject.xojo_code
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,8 @@ Implements Roo.Dateable
Return New BooleanObject(If(Value.DayOfWeek = 5, True, False))
Case "time"
Return DoTime(name)
Case "to_http_header"
Return New TextObject(ToHTTPHeaderFormat)
Case "to_text"
If Self.Value = Nil Then
Return New TextObject("Nothing")
Expand Down

0 comments on commit af113d6

Please sign in to comment.