## 阴历转佛历 阴历和佛历之间的相互转换,必须得支持才行。 1. .getFoto() > 返回对应的佛历对象。 ### 示例代码
javascript
java
csharp
php
python
go
// 实例化 var lunar = Lunar.fromYmd(1986, 4, 21); console.log(lunar); // 转佛历 var foto = lunar.getFoto(); console.log(foto.toString()); console.log(foto.toFullString());
// 实例化 Lunar lunar = Lunar.fromYmd(1986, 4, 21); System.out.println(lunar); // 转佛历 Foto foto = lunar.getFoto(); System.out.println(foto.toString()); System.out.println(foto.toFullString());
// 实例化 Lunar lunar = Lunar.fromYmd(1986, 4, 21); Console.WriteLine(lunar); // 转佛历 Foto foto = lunar.getFoto(); Console.WriteLine(foto.toString()); Console.WriteLine(foto.toFullString());
// 实例化 $lunar = Lunar::fromYmd(1986, 4, 21); echo $lunar."\n"; // 转佛历 $foto = $lunar->getFoto(); echo $foto->toString()."\n"; echo $foto->toFullString()."\n";
# 实例化 lunar = Lunar.fromYmd(1986, 4, 21) print lunar # 转佛历 foto = lunar.getFoto() print foto.toString() print foto.toFullString()
// 实例化 lunar := calendar.NewLunarFromYmd(1986, 4, 21) fmt.Println(lunar) // 转佛历 foto := lunar.GetFoto() fmt.Println(foto.ToString()) fmt.Println(foto.ToFullString())
### 输出