NSDate.odin 561 B

12345678910111213141516171819
  1. package objc_Foundation
  2. @(objc_class="NSDate")
  3. Date :: struct {using _: Copying(Date)}
  4. @(objc_type=Date, objc_name="alloc", objc_is_class_method=true)
  5. Date_alloc :: proc "c" () -> ^Date {
  6. return msgSend(^Date, Date, "alloc")
  7. }
  8. @(objc_type=Date, objc_name="init")
  9. Date_init :: proc "c" (self: ^Date) -> ^Date {
  10. return msgSend(^Date, self, "init")
  11. }
  12. @(objc_type=Date, objc_name="dateWithTimeIntervalSinceNow")
  13. Date_dateWithTimeIntervalSinceNow :: proc "c" (secs: TimeInterval) -> ^Date {
  14. return msgSend(^Date, Date, "dateWithTimeIntervalSinceNow:", secs)
  15. }