Latest 1.0
Homepage https://github.com/hyc286716320/HYCGetDateAttribute
License MIT
Platforms ios , requires ARC
Authors

输入日期获取节气,农历节日,公历节日,星期,年月日公历,农历等等

podfile

To integrate HYCGetDateAttribute into your Xcode project using CocoaPods, specify it in your Podfile:

$ pod 'HYCGetDateAttribute'

or

pod 'HYCGetDateAttribute', '~> 1.0'

Then, run the following command:

$ pod install

Usage

#import <HYCGetDateAttribute/HYCGetDateAttribute.h>

HYCGetDateAttribute *dateNew = [[HYCGetDateAttribute alloc]init];
    dateNew.HYC_GLTime = @"2018-1-17";

    NSLog(@"%d",dateNew.HYC_isToday         /*是不是今天    */    );
    NSLog(@"%@",dateNew.HYC_ChineseWeek     /*中文星期      */    );
    NSLog(@"%@",dateNew.HYC_EnglishWeek     /*英文日期      */    );
    NSLog(@"%@",dateNew.HYC_Date            /*时间戳        */    );
    NSLog(@"%@",dateNew.HYC_GLYears         /*公历年        */    );
    NSLog(@"%@",dateNew.HYC_GLMonth         /*公历月        */    );
    NSLog(@"%@",dateNew.HYC_GLDay           /*公历日        */    );
    NSLog(@"%@",dateNew.HYC_NLYears         /*农历年        */    );
    NSLog(@"%@",dateNew.HYC_NLMonth         /*农历月        */    );
    NSLog(@"%@",dateNew.HYC_NLDay           /*农历日        */    );
    NSLog(@"%@",dateNew.HYC_SolarTerms      /*节气          */    );
    NSLog(@"%@",dateNew.HYC_GLHoliday       /*公历节日       */    );
    NSLog(@"%@",dateNew.HYC_NLHoliday       /*农历节日       */    );

Latest podspec

{
    "name": "HYCGetDateAttribute",
    "version": "1.0",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "summary": "u8f93u5165u65e5u671fu83b7u53d6u8282u6c14,u519cu5386u8282u65e5,u516cu5386u8282u65e5,u661fu671f,u5e74u6708u65e5u516cu5386,u519cu5386u7b49u7b49",
    "homepage": "https://github.com/hyc286716320/HYCGetDateAttribute",
    "authors": {
        "HuYunchao": "hyc286716320"
    },
    "source": {
        "git": "https://github.com/hyc286716320/HYCGetDateAttribute.git",
        "tag": "1.0"
    },
    "platforms": {
        "ios": null
    },
    "source_files": "HYCGetDateAttribute/HYCGetDateAttribute",
    "requires_arc": true
}

Pin It on Pinterest

Share This