1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16

content / browser / date_time_chooser / ios / date_time_chooser_util.h [blame]

// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CONTENT_BROWSER_DATE_TIME_CHOOSER_IOS_DATE_TIME_CHOOSER_UTIL_H_
#define CONTENT_BROWSER_DATE_TIME_CHOOSER_IOS_DATE_TIME_CHOOSER_UTIL_H_

#import <UIKit/UIKit.h>

// Gets NSDate from the number of months after January 1970.
NSDate* GetDateFromNumberOfMonths(NSInteger month);

// Gets the number of months between `date` and January 1970.
NSInteger GetNumberOfMonthsFromDate(NSDate* date);

#endif  // CONTENT_BROWSER_DATE_TIME_CHOOSER_IOS_DATE_TIME_CHOOSER_UTIL_H_