FIRTimestamp+Internal.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * Copyright 2018 Google
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. #import "FIRTimestamp.h"
  17. NS_ASSUME_NONNULL_BEGIN
  18. /** Internal FIRTimestamp API we don't want exposed in our public header files. */
  19. @interface FIRTimestamp (Internal)
  20. /**
  21. * Converts the given date to an ISO 8601 timestamp string, useful for rendering in JSON.
  22. *
  23. * ISO 8601 dates times in UTC look like this: "1912-04-14T23:40:00.000000000Z".
  24. *
  25. * @see http://www.ecma-international.org/ecma-262/6.0/#sec-date-time-string-format
  26. */
  27. - (NSString *)ISO8601String;
  28. @end
  29. NS_ASSUME_NONNULL_END