C# Class CSharpTwitterBot.TweetContents.TweetsDate

今年のうちどれくらいが経過したかなど、日付に関連したツイート文面を作るクラス。
Afficher le fichier Open project: chomado/TwitterBot_InCSharp

Private Properties

Свойство Type Description
GetPassedTime double
ToPercentage double

Méthodes publiques

Méthode Description
FormatPassedTime ( ) : string

"今日 2016/02/20 は第7週目の土曜日です。今年の13.75%が経過しました。"

Private Methods

Méthode Description
GetPassedTime ( ) : double

今日は、今年のうちどれくらいの割合が経過しているか、を返す。(小数)

秒単位まで見る

ToPercentage ( this quotient ) : double

小数を受け取って、パーセント(小数点以下2桁)に変換した double型を返す 0.523545 → 52.35

Method Details

FormatPassedTime() public static méthode

"今日 2016/02/20 は第7週目の土曜日です。今年の13.75%が経過しました。"
public static FormatPassedTime ( ) : string
Résultat string