高校物理160203 views
高校国語788336 views
高校化学2924392 views
雑学1473612 views
高校日本史190571 views
小学社会310485 views
英語613639 views
小学算数1200427 views
りんご209490 views
高校生物551766 views
Help
Tools
NewsSpreadsheetCalendarSlidesTier ListPen ToolIllustrationCrayonPixel ArtASCII ArtPerspectiveEndless StairsGraphMind MapER DiagramFamily TreeMemeCurved TextImage EditorMosaicRetro FilterPencil SketchOCR/HighlighterMakeup EditorFaviconVideo TrimmerScrolling VideoVideo TitleColor PickerColor ExtractorBonfireFireworksWater RippleWater SplashBreaking GlassWood GrainMarble TextureCSS ButtonIcon MakerBar ChartGrouped Bar ChartStacked Bar ChartPie ChartLine ChartArea ChartStacked Area ChartScatter Plot3D Bar Chart3D Pie ChartBar Chart RaceBubble ChartPopulation PyramidPictogramEarningsCandlestick ChartInvestment RiskMortgage SimulatorCalculatorMatrix CalculatorFunction GraphPolynomial ExpansionVenn DiagramField VisualizerRubik's Cube Group TheoryTraveling SalesmanVoronoi and DelaunayFractalColumn ArithmeticDraw Math FiguresArithmetic AnimationArithmetic Word ProblemsCounting with Tree DiagramsCube NetsCross SectionsMotion PathMechanicsWavesLight and LensesThermodynamicsHow Semiconductors WorkMolecular StructuresAtomic OrbitalsElectrochemical CellsChemical EquilibriumCrystal LatticesBuffer pHComplex IonsDNA Double HelixCell DivisionMembrane ChannelsNerve ImpulseRock ClassificationWeatherConstellationsSolar and Lunar Eclipses3D ModelingFloor PlanSeismic StructuresIntersection TurnMaglevCooking AnimationOrigamiLive Viewer CountGeoJSON MapRailway MapPopulation MapCrime MapLand Price MapSchool MapShrine and Castle MapHouse of Representatives MapWord MapSolitaireReversiHakoiri MusumeChessHamburgerRippleSlide Puzzle MakerNeon PinballNovel MakerJapanese Typing PracticePiano Score EditorMusic Theory

English

Python の strftime の表示形式まとめ(年月日や曜日、0 埋めなど)

書式意味
%Y西暦(4 桁)2025
%y西暦(下 2 桁)25
%m月(ゼロ埋め 01–12)06
%B月名(英語)June
%b月名(省略形)Jun
%d日(ゼロ埋め 01–31)17
%e日(ゼロ埋めなし)※一部環境17
%j年内通算日(001–366)168
%U年内の週番号(日曜始まり)24
%W年内の週番号(月曜始まり)24
書式意味
%A曜日名(英語)Tuesday
%a曜日名(省略形)Tue
%w曜日番号(0:日曜〜6:土曜)2
書式意味
%H時(24 時間、ゼロ埋め)14
%I時(12 時間、ゼロ埋め)02
%p午前 / 午後(AM / PM)PM
%M分(ゼロ埋め)05
%S秒(ゼロ埋め)09
%fマイクロ秒(ゼロ埋め 6 桁)123456
%Zタイムゾーン名JST
%zタイムゾーン UTC オフセット+0900
書式意味
%cローカルな日時表現Tue Jun 17 14:05:09 2025
%xローカルな日付表現06/17/25(米国形式)
%Xローカルな時刻表現14:05:09
%%% 文字そのもの%